summaryrefslogtreecommitdiffstats
path: root/cfgparser.h
diff options
context:
space:
mode:
authorfolke <folke@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-15 19:26:22 +0000
committerfolke <folke@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-15 19:26:22 +0000
commit5663ecf375687742403f710b586638d8445f3ca3 (patch)
tree582577b863bc12bef4c8e18b8574eac1fdb333ee /cfgparser.h
parentdf5f98af287d0f13f2fa9454928b176b9ad1e0cd (diff)
downloadmpv-5663ecf375687742403f710b586638d8445f3ca3.tar.bz2
mpv-5663ecf375687742403f710b586638d8445f3ca3.tar.xz
New feature for option processing: CONF_TYPE_FUNC_FULL
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1537 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cfgparser.h')
-rw-r--r--cfgparser.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cfgparser.h b/cfgparser.h
index f94fc81aa9..9ad235185e 100644
--- a/cfgparser.h
+++ b/cfgparser.h
@@ -12,6 +12,15 @@
#define CONF_TYPE_FUNC 4
#define CONF_TYPE_FUNC_PARAM 5
#define CONF_TYPE_PRINT 6
+#define CONF_TYPE_FUNC_FULL 7
+
+
+#define ERR_NOT_AN_OPTION -1
+#define ERR_MISSING_PARAM -2
+#define ERR_OUT_OF_RANGE -3
+#define ERR_FUNC_ERR -4
+
+
#define CONF_MIN (1<<0)
#define CONF_MAX (1<<1)
@@ -27,6 +36,7 @@ struct config {
float min,max;
};
+typedef int (*cfg_func_arg_param_t)(struct config *, char *, char *);
typedef int (*cfg_func_param_t)(struct config *, char *);
typedef int (*cfg_func_t)(struct config *);