Mercurial > mplayer.hg
comparison cfg-mplayer.h @ 4158:479c7828edbb
GLOBAL flags and other changes for new config - patch by Alban Bedel <albeu@free.fr>
author | arpi |
---|---|
date | Mon, 14 Jan 2002 23:55:51 +0000 |
parents | 9ff9f6ce6799 |
children | f1e1b02314ef |
comparison
equal
deleted
inserted
replaced
4157:9ff9f6ce6799 | 4158:479c7828edbb |
---|---|
107 * negative values: see cfgparser.h, ERR_XXX | 107 * negative values: see cfgparser.h, ERR_XXX |
108 * | 108 * |
109 * by Folke | 109 * by Folke |
110 */ | 110 */ |
111 | 111 |
112 struct config mplayer_opts[]={ | 112 static config_t mplayer_opts[]={ |
113 /* name, pointer, type, flags, min, max */ | 113 /* name, pointer, type, flags, min, max */ |
114 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, 0, 0, 0, NULL}, /* this must be the first!!! */ | 114 {"include", cfg_include, CONF_TYPE_FUNC_PARAM, CONF_NOSAVE, 0, 0, NULL}, /* this don't need anymore to be the first!!! */ |
115 | 115 |
116 //---------------------- libao/libvo/mplayer options ------------------------ | 116 //---------------------- libao/libvo/mplayer options ------------------------ |
117 {"o", "Option -o has been renamed to -vo (video-out), use -vo !\n", | 117 {"o", "Option -o has been renamed to -vo (video-out), use -vo !\n", |
118 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, | 118 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, |
119 {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 119 {"vo", &video_driver, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
209 {"noxv", &sdl_noxv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 209 {"noxv", &sdl_noxv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
210 {"forcexv", &sdl_forcexv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 210 {"forcexv", &sdl_forcexv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
211 {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver\n", | 211 {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver\n", |
212 CONF_TYPE_PRINT, 0, 0, 0, NULL}, | 212 CONF_TYPE_PRINT, 0, 0, 0, NULL}, |
213 #endif | 213 #endif |
214 {"x", &screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | 214 {"x", &opt_screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
215 {"y", &screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | 215 {"y", &opt_screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
216 {"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | 216 {"xy", &screen_size_xy, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
217 {"screenw", &vo_screenwidth, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | 217 {"screenw", &vo_screenwidth, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
218 {"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, | 218 {"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL}, |
219 {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, | 219 {"aspect", &movie_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, |
220 {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0, NULL}, | 220 {"noaspect", &movie_aspect, CONF_TYPE_FLAG, 0, 0, 0, NULL}, |
238 #ifdef HAVE_AA | 238 #ifdef HAVE_AA |
239 {"aa*", vo_aa_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 , NULL}, | 239 {"aa*", vo_aa_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0 , NULL}, |
240 #endif | 240 #endif |
241 | 241 |
242 #ifdef HAVE_LIRC | 242 #ifdef HAVE_LIRC |
243 {"lircconf", &lirc_configfile, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 243 {"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
244 #endif | 244 #endif |
245 | 245 |
246 #ifdef USE_DVDREAD | 246 #ifdef USE_DVDREAD |
247 {"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 247 {"alang", &audio_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
248 {"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 248 {"slang", &dvdsub_lang, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
249 #endif | 249 #endif |
250 | 250 |
251 {"gui", &use_gui, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 251 {"gui", &use_gui, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
252 {"nogui", &use_gui, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | 252 {"nogui", &use_gui, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL}, |
253 | 253 |
254 #ifdef HAVE_NEW_GUI | 254 #ifdef HAVE_NEW_GUI |
255 {"skin", &skinName, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 255 {"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL}, |
256 #endif | 256 #endif |
257 | 257 |
258 {"playlist", &playlist_file, CONF_TYPE_STRING, 0, 0, 0, NULL}, | 258 {"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL}, |
259 {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 259 {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
260 {"nodapsync", &dapsync, CONF_TYPE_FLAG, 0, 1, 0, NULL}, | 260 {"nodapsync", &dapsync, CONF_TYPE_FLAG, 0, 1, 0, NULL}, |
261 {"softsleep", &softsleep, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 261 {"softsleep", &softsleep, CONF_TYPE_FLAG, 0, 0, 1, NULL}, |
262 | 262 |
263 {"slave", &slave_mode, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 263 {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL}, |
264 | 264 |
265 #ifdef HAVE_X11 | 265 #ifdef HAVE_X11 |
266 {"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL}, | 266 {"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL}, |
267 {"rootwin", &WinID, CONF_TYPE_FLAG, 0, -1, 0, NULL}, | 267 {"rootwin", &WinID, CONF_TYPE_FLAG, 0, -1, 0, NULL}, |
268 #endif | 268 #endif |
273 | 273 |
274 #define MAIN_CONF | 274 #define MAIN_CONF |
275 #include "cfg-common.h" | 275 #include "cfg-common.h" |
276 #undef MAIN_CONF | 276 #undef MAIN_CONF |
277 | 277 |
278 {"quiet", &quiet, CONF_TYPE_FLAG, 0, 0, 1, NULL}, | 278 {"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL}, |
279 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL}, | 279 {"verbose", &verbose, CONF_TYPE_INT, CONF_RANGE|CONF_GLOBAL, 0, 100, NULL}, |
280 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, 0, 0, 0, NULL}, | 280 {"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL}, |
281 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, | 281 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, |
282 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, | 282 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, |
283 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, | 283 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL}, |
284 {NULL, NULL, 0, 0, 0, 0, NULL} | 284 {NULL, NULL, 0, 0, 0, 0, NULL} |
285 }; | 285 }; |