diff options
author | folke <folke@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-15 19:26:22 +0000 |
---|---|---|
committer | folke <folke@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-08-15 19:26:22 +0000 |
commit | 5663ecf375687742403f710b586638d8445f3ca3 (patch) | |
tree | 582577b863bc12bef4c8e18b8574eac1fdb333ee /cfg-mplayer.h | |
parent | df5f98af287d0f13f2fa9454928b176b9ad1e0cd (diff) | |
download | mpv-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 'cfg-mplayer.h')
-rw-r--r-- | cfg-mplayer.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 9e99852a1c..c0027487c5 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -2,6 +2,7 @@ * config for cfgparser */ + #ifdef HAVE_FBDEV extern char *fb_dev_name; extern char *fb_mode_cfgfile; @@ -50,12 +51,22 @@ extern char *mDisplayName; #endif #ifdef HAVE_AA -extern int aaopt_osdcolor; -extern int aaopt_extended; -extern int aaopt_eight; -extern char aaopt_driver; +extern int vo_aa_parseoption(struct config * conf, char *opt, char * param); #endif +/* + * CONF_TYPE_FUNC_FULL : + * allows own implemtations for passing the params + * + * the function receives parameter name and argument (if it does not start with - ) + * useful with a conf.name like 'aa*' to parse several parameters to a function + * return 0 =ok, but we didn't need the param (could be the filename) + * return 1 =ok, we accepted the param + * negative values: see cfgparser.h, ERR_XXX + * + * by Folke + */ + struct config conf[]={ /* name, pointer, type, flags, min, max */ {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0}, /* this must be the first!!! */ @@ -203,10 +214,7 @@ struct config conf[]={ #endif #ifdef HAVE_AA - {"aaosdfont", &aaopt_osdcolor, CONF_TYPE_INT, CONF_RANGE, 0, 5 }, - {"aaextended", &aaopt_extended, CONF_TYPE_FLAG, 0, 0, 1 }, - {"aaeight", &aaopt_eight, CONF_TYPE_FLAG, 0, 0, 1 }, - {"aadriver", &aaopt_driver, CONF_TYPE_STRING, 0, 0, 0 }, + {"aa*", vo_aa_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 }, #endif |