summaryrefslogtreecommitdiffstats
path: root/core/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-27 21:26:00 +0200
committerwm4 <wm4@nowhere>2013-07-28 18:44:21 +0200
commitc070fa865fcf75cace05bf492a68f6a2c6137fb3 (patch)
tree87cdc963094ed5604121d5f2f6e354cf52503c1e /core/options.h
parentda2b4aa5870f407ad322b6116ed8d66a66dbeadf (diff)
downloadmpv-c070fa865fcf75cace05bf492a68f6a2c6137fb3.tar.bz2
mpv-c070fa865fcf75cace05bf492a68f6a2c6137fb3.tar.xz
m_config: refactor some things
Change how m_config is initialized. Make it more uniform; now all m_config structs are intialized in exactly the same way. Make sure there's only a single m_option[] array defining the options, and keep around the pointer to the optstruct default value, and the optstruct size as well. This will allow reconstructing the option default values in the following commit. In particular, stop pretending that the handling of some special options (like --profile, --v, and some others) is in any way elegant, and make them explicit hacks. This is really more readable and easier to understand than what was before, and simplifies the code.
Diffstat (limited to 'core/options.h')
-rw-r--r--core/options.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/options.h b/core/options.h
index 45f3e858bb..2037d6da4b 100644
--- a/core/options.h
+++ b/core/options.h
@@ -234,10 +234,8 @@ typedef struct MPOpts {
int use_joystick;
int use_lirc;
int use_lircc;
-#ifdef CONFIG_COCOA
int use_ar;
int use_media_keys;
-#endif
int default_bindings;
int test;
} input;