Make sure we always have a swab() prototype when we use it,
[mplayer/glamo.git] / cfg-mplayer.h
blobdaec15eaf0471c0b7c9ce6b18f418a9ec2ea497a
1 /*
2 * config for cfgparser
3 */
5 #include "cfg-common.h"
7 extern int key_fifo_size;
8 extern unsigned doubleclick_time;
9 extern int noconsolecontrols;
11 #if defined(HAVE_FBDEV)||defined(HAVE_VESA)
12 extern char *monitor_hfreq_str;
13 extern char *monitor_vfreq_str;
14 extern char *monitor_dotclock_str;
15 #endif
17 #ifdef HAVE_FBDEV
18 extern char *fb_mode_cfgfile;
19 extern char *fb_mode_name;
20 #endif
21 #ifdef HAVE_DIRECTFB
22 extern char *dfb_params;
23 #endif
24 #ifdef USE_FAKE_MONO
25 extern int fakemono; // defined in dec_audio.c
26 #endif
28 extern int volstep;
30 #ifdef HAVE_LIRC
31 extern char *lirc_configfile;
32 #endif
34 extern int vo_doublebuffering;
35 extern int vo_vsync;
36 extern int vo_fsmode;
37 extern int vo_dbpp;
38 extern int vo_directrendering;
39 extern float vo_panscan;
40 extern float vo_panscanrange;
41 /* only used at startup (setting these values from configfile) */
42 extern int vo_gamma_brightness;
43 extern int vo_gamma_saturation;
44 extern int vo_gamma_contrast;
45 extern int vo_gamma_hue;
46 extern char *vo_geometry;
47 extern int vo_ontop;
48 extern int vo_border;
49 extern int vo_keepaspect;
50 extern int vo_rootwin;
52 extern int opt_screen_size_x;
53 extern int opt_screen_size_y;
54 extern int fullscreen;
55 extern int vidmode;
57 extern int osd_level;
59 extern char *ao_outputfilename;
60 extern int ao_pcm_waveheader;
62 #ifdef HAVE_X11
63 extern char *mDisplayName;
64 extern int fs_layer;
65 extern int stop_xscreensaver;
66 extern char **vo_fstype_list;
67 #endif
68 extern int vo_nomouse_input;
69 extern int WinID;
71 #ifdef HAVE_MENU
72 extern int menu_startup;
73 extern int menu_keepdir;
74 extern char *menu_chroot;
75 #ifdef USE_FRIBIDI
76 extern char *menu_fribidi_charset;
77 extern int menu_flip_hebrew;
78 extern int menu_fribidi_flip_commas;
79 #endif
80 #endif
82 #ifdef HAVE_ZR
83 extern int vo_zr_parseoption(m_option_t* conf, char *opt, char * param);
84 extern void vo_zr_revertoption(m_option_t* opt,char* pram);
85 #endif
87 #ifdef HAVE_DXR2
88 extern m_option_t dxr2_opts[];
89 #endif
91 #ifdef HAVE_NEW_GUI
92 extern char * skinName;
93 extern int enqueue;
94 extern int guiWinID;
95 #endif
97 #ifdef HAVE_XINERAMA
98 extern int xinerama_screen;
99 #endif
101 /* from libvo/aspect.c */
102 extern float monitor_aspect;
103 extern float monitor_pixel_aspect;
105 extern int sws_flags;
106 extern int readPPOpt(void *conf, char *arg);
107 extern void revertPPOpt(void *conf, char* opt);
108 extern char* pp_help;
109 extern int enable_mouse_movements;
110 extern int use_filedir_conf;
112 m_option_t vd_conf[]={
113 {"help", "Use MPlayer with an appropriate video file instead of live partners to avoid vd.\n", CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
114 {NULL, NULL, 0, 0, 0, 0, NULL}
118 * CONF_TYPE_FUNC_FULL :
119 * allows own implementations for passing the params
121 * the function receives parameter name and argument (if it does not start with - )
122 * useful with a conf.name like 'aa*' to parse several parameters to a function
123 * return 0 =ok, but we didn't need the param (could be the filename)
124 * return 1 =ok, we accepted the param
125 * negative values: see cfgparser.h, ERR_XXX
127 * by Folke
130 m_option_t mplayer_opts[]={
131 /* name, pointer, type, flags, min, max */
133 //---------------------- libao/libvo options ------------------------
134 {"o", "Option -o has been renamed to -vo (video-out), use -vo.\n",
135 CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
136 {"vo", &video_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
137 {"ao", &audio_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
138 {"fixed-vo", &fixed_vo, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},
139 {"nofixed-vo", &fixed_vo, CONF_TYPE_FLAG,CONF_GLOBAL, 1, 0, NULL},
140 {"ontop", &vo_ontop, CONF_TYPE_FLAG, 0, 0, 1, NULL},
141 {"noontop", &vo_ontop, CONF_TYPE_FLAG, 0, 1, 0, NULL},
142 {"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
143 {"border", &vo_border, CONF_TYPE_FLAG, 0, 0, 1, NULL},
144 {"noborder", &vo_border, CONF_TYPE_FLAG, 0, 1, 0, NULL},
146 {"aop", "-aop has been removed, use -af instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
147 {"dsp", "-dsp has been removed. Use -ao oss:dsp_path instead.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
148 {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
149 {"mixer-channel", &mixer_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
150 {"softvol", &soft_vol, CONF_TYPE_FLAG, 0, 0, 1, NULL},
151 {"nosoftvol", &soft_vol, CONF_TYPE_FLAG, 0, 1, 0, NULL},
152 {"softvol-max", &soft_vol_max, CONF_TYPE_FLOAT, CONF_RANGE, 10, 10000, NULL},
153 {"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
154 {"master", "Option -master has been removed, use -af volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
155 // override audio buffer size (used only by -ao oss, anyway obsolete...)
156 {"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
158 // -ao pcm options:
159 {"aofile", "-aofile has been removed. Use -ao pcm:file=<filename> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
160 {"waveheader", "-waveheader has been removed. Use -ao pcm:waveheader instead.\n", CONF_TYPE_PRINT, 0, 0, 1, NULL},
161 {"nowaveheader", "-nowaveheader has been removed. Use -ao pcm:nowaveheader instead.\n", CONF_TYPE_PRINT, 0, 1, 0, NULL},
163 {"alsa", "-alsa has been removed. Remove it from your config file.\n",
164 CONF_TYPE_PRINT, 0, 0, 0, NULL},
165 {"noalsa", "-noalsa has been removed. Remove it from your config file.\n",
166 CONF_TYPE_PRINT, 0, 0, 0, NULL},
167 {"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
169 #ifdef HAVE_X11
170 {"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},
171 #endif
173 // -vo png only:
174 #ifdef HAVE_PNG
175 {"z", "-z has been removed. Use -vo png:z=<0-9> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
176 #endif
177 // -vo jpeg only:
178 #ifdef HAVE_JPEG
179 {"jpeg", "-jpeg has been removed. Use -vo jpeg:<options> instead.\n",
180 CONF_TYPE_PRINT, 0, 0, 0, NULL},
181 #endif
182 // -vo sdl only:
183 {"sdl", "Use -vo sdl:driver=<driver> instead of -vo sdl -sdl driver.\n",
184 CONF_TYPE_PRINT, 0, 0, 0, NULL},
185 {"noxv", "-noxv has been removed. Use -vo sdl:nohwaccel instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
186 {"forcexv", "-forcexv has been removed. Use -vo sdl:forcexv instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
187 // -ao sdl only:
188 {"sdla", "Use -ao sdl:driver instead of -ao sdl -sdla driver.\n",
189 CONF_TYPE_PRINT, 0, 0, 0, NULL},
191 #if defined(HAVE_FBDEV)||defined(HAVE_VESA)
192 {"monitor-hfreq", &monitor_hfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
193 {"monitor-vfreq", &monitor_vfreq_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
194 {"monitor-dotclock", &monitor_dotclock_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
195 #endif
197 #ifdef HAVE_FBDEV
198 {"fbmode", &fb_mode_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
199 {"fbmodeconfig", &fb_mode_cfgfile, CONF_TYPE_STRING, 0, 0, 0, NULL},
200 #endif
201 #ifdef HAVE_DIRECTFB
202 #if DIRECTFBVERSION > 912
203 {"dfbopts", "-dfbopts has been removed. Use -vf directfb:dfbopts=... instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
204 #endif
205 #endif
207 // force window width/height or resolution (with -vm)
208 {"x", &opt_screen_size_x, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},
209 {"y", &opt_screen_size_y, CONF_TYPE_INT, CONF_RANGE, 0, 4096, NULL},
210 // set screen dimensions (when not detectable or virtual!=visible)
211 {"screenw", &vo_screenwidth, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},
212 {"screenh", &vo_screenheight, CONF_TYPE_INT, CONF_RANGE|CONF_OLD, 0, 4096, NULL},
213 // Geometry string
214 {"geometry", &vo_geometry, CONF_TYPE_STRING, 0, 0, 0, NULL},
215 // set aspect ratio of monitor - useful for 16:9 TVout
216 {"monitoraspect", &monitor_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 9.0, NULL},
217 {"monitorpixelaspect", &monitor_pixel_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 9.0, NULL},
218 // video mode switching: (x11,xv,dga)
219 {"vm", &vidmode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
220 {"novm", &vidmode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
221 // start in fullscreen mode:
222 {"fs", &fullscreen, CONF_TYPE_FLAG, 0, 0, 1, NULL},
223 {"nofs", &fullscreen, CONF_TYPE_FLAG, 0, 1, 0, NULL},
224 // set fullscreen switch method (workaround for buggy WMs)
225 {"fsmode", "-fsmode is obsolete, avoid it and use -fstype instead.\nIf you really want it, try -fsmode-dontuse, but don't report bugs!\n", CONF_TYPE_PRINT, CONF_RANGE, 0, 31, NULL},
226 {"fsmode-dontuse", &vo_fsmode, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
227 // set bpp (x11+vm, dga, fbdev, vesa, svga?)
228 {"bpp", &vo_dbpp, CONF_TYPE_INT, CONF_RANGE, 0, 32, NULL},
229 {"colorkey", &vo_colorkey, CONF_TYPE_INT, 0, 0, 0, NULL},
230 {"nocolorkey", &vo_colorkey, CONF_TYPE_FLAG, 0, 0, 0x1000000, NULL},
231 {"double", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 0, 1, NULL},
232 {"nodouble", &vo_doublebuffering, CONF_TYPE_FLAG, 0, 1, 0, NULL},
233 // wait for v-sync (vesa)
234 {"vsync", &vo_vsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
235 {"novsync", &vo_vsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},
236 {"panscan", &vo_panscan, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL},
237 {"panscanrange", &vo_panscanrange, CONF_TYPE_FLOAT, CONF_RANGE, -19.0, 99.0, NULL},
239 {"grabpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 0, 1, NULL},
240 {"nograbpointer", &vo_grabpointer, CONF_TYPE_FLAG, 0, 1, 0, NULL},
242 {"adapter", &vo_adapter_num, CONF_TYPE_INT, CONF_RANGE, 0, 5, NULL},
243 {"refreshrate",&vo_refresh_rate,CONF_TYPE_INT,CONF_RANGE, 0,100, NULL},
244 {"wid", &WinID, CONF_TYPE_INT, 0, 0, 0, NULL},
245 #ifdef HAVE_X11
246 // x11,xv,xmga,xvidix
247 {"icelayer", "-icelayer has been removed. Use -fstype layer:<number> instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
248 {"stop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 0, 1, NULL},
249 {"nostop-xscreensaver", &stop_xscreensaver, CONF_TYPE_FLAG, 0, 1, 0, NULL},
250 {"stop_xscreensaver", "Use -stop-xscreensaver instead, options with _ have been obsoleted.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
251 {"fstype", &vo_fstype_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
252 #endif
253 {"mouseinput", &vo_nomouse_input, CONF_TYPE_FLAG, 0, 1, 0, NULL},
254 {"nomouseinput", &vo_nomouse_input, CONF_TYPE_FLAG,0, 0, 1, NULL},
256 {"xineramascreen", &xinerama_screen, CONF_TYPE_INT, CONF_RANGE, -2, 32, NULL},
258 {"brightness",&vo_gamma_brightness, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
259 {"saturation",&vo_gamma_saturation, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
260 {"contrast",&vo_gamma_contrast, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
261 {"hue",&vo_gamma_hue, CONF_TYPE_INT, CONF_RANGE, -100, 100, NULL},
262 {"keepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 0, 1, NULL},
263 {"nokeepaspect", &vo_keepaspect, CONF_TYPE_FLAG, 0, 1, 0, NULL},
265 // direct rendering (decoding to video out buffer)
266 {"dr", &vo_directrendering, CONF_TYPE_FLAG, 0, 0, 1, NULL},
267 {"nodr", &vo_directrendering, CONF_TYPE_FLAG, 0, 1, 0, NULL},
268 {"vaa_dr", "-vaa_dr has been removed, use -dr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
269 {"vaa_nodr", "-vaa_nodr has been removed, use -nodr.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
271 #ifdef HAVE_AA
272 // -vo aa
273 {"aa*", "-aa* has been removed. Use -vo aa:suboption instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
274 #endif
276 #ifdef HAVE_ZR
277 // -vo zr
278 {"zr*", vo_zr_parseoption, CONF_TYPE_FUNC_FULL, 0, 0, 0, &vo_zr_revertoption },
279 #endif
281 #ifdef HAVE_DXR2
282 {"dxr2", &dxr2_opts, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
283 #endif
286 //---------------------- mplayer-only options ------------------------
288 {"use-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
289 {"nouse-filedir-conf", &use_filedir_conf, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
290 #ifdef CRASH_DEBUG
291 {"crash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
292 {"nocrash-debug", &crash_debug, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
293 #endif
294 {"osdlevel", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
295 {"osd-duration", &osd_duration, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
296 #ifdef HAVE_MENU
297 {"menu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
298 {"nomenu", &use_menu, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
299 {"menu-root", &menu_root, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
300 {"menu-cfg", &menu_cfg, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
301 {"menu-startup", &menu_startup, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
302 {"menu-keepdir", &menu_keepdir, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
303 {"menu-chroot", &menu_chroot, CONF_TYPE_STRING, 0, 0, 0, NULL},
304 #ifdef USE_FRIBIDI
305 {"menu-fribidi-charset", &menu_fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
306 {"menu-flip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
307 {"menu-noflip-hebrew", &menu_flip_hebrew, CONF_TYPE_FLAG, 0, 1, 0, NULL},
308 {"menu-flip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 1, 0, NULL},
309 {"menu-noflip-hebrew-commas", &menu_fribidi_flip_commas, CONF_TYPE_FLAG, 0, 0, 1, NULL},
310 #endif
311 #else
312 {"menu", "OSD menu support was not compiled in.\n", CONF_TYPE_PRINT,0, 0, 0, NULL},
313 #endif
315 // these should be moved to -common, and supported in MEncoder
316 {"vobsub", &vobsub_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
317 {"vobsubid", &vobsub_id, CONF_TYPE_INT, CONF_RANGE, 0, 31, NULL},
319 {"sstep", &step_sec, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},
321 {"framedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 1, NULL},
322 {"hardframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 0, 2, NULL},
323 {"noframedrop", &frame_dropping, CONF_TYPE_FLAG, 0, 1, 0, NULL},
325 {"autoq", &auto_quality, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
327 {"benchmark", &benchmark, CONF_TYPE_FLAG, 0, 0, 1, NULL},
329 // dump some stream out instead of playing the file
330 // this really should be in MEncoder instead of MPlayer... -> TODO
331 {"dumpfile", &stream_dump_name, CONF_TYPE_STRING, 0, 0, 0, NULL},
332 {"dumpaudio", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 1, NULL},
333 {"dumpvideo", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 2, NULL},
334 {"dumpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 3, NULL},
335 {"dumpmpsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 4, NULL},
336 {"dumpstream", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 5, NULL},
337 {"dumpsrtsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 6, NULL},
338 {"dumpmicrodvdsub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 7, NULL},
339 {"dumpjacosub", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 8, NULL},
340 {"dumpsami", &stream_dump_type, CONF_TYPE_FLAG, 0, 0, 9, NULL},
342 #ifdef HAVE_LIRC
343 {"lircconf", &lirc_configfile, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
344 #endif
346 {"gui", "The -gui option will only work as the first command line argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
347 {"nogui", "The -nogui option will only work as the first command line argument.\n", CONF_TYPE_PRINT, 0, 0, 0, (void *)1},
349 #ifdef HAVE_NEW_GUI
350 {"skin", &skinName, CONF_TYPE_STRING, CONF_GLOBAL, 0, 0, NULL},
351 {"enqueue", &enqueue, CONF_TYPE_FLAG, 0, 0, 1, NULL},
352 {"noenqueue", &enqueue, CONF_TYPE_FLAG, 0, 1, 0, NULL},
353 {"guiwid", &guiWinID, CONF_TYPE_INT, 0, 0, 0, NULL},
354 #endif
356 {"noloop", &loop_times, CONF_TYPE_FLAG, 0, 0, -1, NULL},
357 {"loop", &loop_times, CONF_TYPE_INT, CONF_RANGE, -1, 10000, NULL},
358 {"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL},
360 // a-v sync stuff:
361 {"correct-pts", &correct_pts, CONF_TYPE_FLAG, 0, 0, 1, NULL},
362 {"no-correct-pts", &correct_pts, CONF_TYPE_FLAG, 0, 1, 0, NULL},
363 {"noautosync", &autosync, CONF_TYPE_FLAG, 0, 0, -1, NULL},
364 {"autosync", &autosync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL},
365 // {"dapsync", &dapsync, CONF_TYPE_FLAG, 0, 0, 1, NULL},
366 // {"nodapsync", &dapsync, CONF_TYPE_FLAG, 0, 1, 0, NULL},
368 {"softsleep", &softsleep, CONF_TYPE_FLAG, 0, 0, 1, NULL},
369 #ifdef HAVE_RTC
370 {"nortc", &nortc, CONF_TYPE_FLAG, 0, 0, 1, NULL},
371 {"rtc", &nortc, CONF_TYPE_FLAG, 0, 1, 0, NULL},
372 {"rtc-device", &rtc_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
373 #endif
375 {"term-osd", &term_osd, CONF_TYPE_FLAG, 0, 0, 1, NULL},
376 {"noterm-osd", &term_osd, CONF_TYPE_FLAG, 0, 1, 0, NULL},
377 {"term-osd-esc", &term_osd_esc, CONF_TYPE_STRING, 0, 0, 1, NULL},
378 {"playing-msg", &playing_msg, CONF_TYPE_STRING, 0, 0, 0, NULL},
380 {"slave", &slave_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},
381 {"idle", &player_idle_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 0, 1, NULL},
382 {"noidle", &player_idle_mode, CONF_TYPE_FLAG,CONF_GLOBAL , 1, 0, NULL},
383 {"use-stdin", "-use-stdin has been renamed to -noconsolecontrols, use that instead.", CONF_TYPE_PRINT, 0, 0, 0, NULL},
384 {"key-fifo-size", &key_fifo_size, CONF_TYPE_INT, CONF_RANGE, 2, 65000, NULL},
385 {"noconsolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
386 {"consolecontrols", &noconsolecontrols, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
387 {"mouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
388 {"nomouse-movements", &enable_mouse_movements, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
389 {"doubleclick-time", &doubleclick_time, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
391 #define MAIN_CONF
392 #include "cfg-common.h"
393 #undef MAIN_CONF
395 {"list-properties", &list_properties, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
396 {"identify", &mp_msg_levels[MSGT_IDENTIFY], CONF_TYPE_FLAG, CONF_GLOBAL, 0, MSGL_V, NULL},
397 {"-help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
398 {"help", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
399 {"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG|CONF_GLOBAL, 0, 0, NULL},
401 {"vd", vd_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
402 {NULL, NULL, 0, 0, 0, 0, NULL}