summaryrefslogtreecommitdiffstats
path: root/core/m_config.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-27 21:30:00 +0200
committerwm4 <wm4@nowhere>2013-07-28 18:56:48 +0200
commita737308f7347f88dc6b34ad63b74c7841078d64b (patch)
treeba1e994c642bb5bc2f2a330458f74caea9004b11 /core/m_config.h
parent85bee4f071d3506d4fe39dff45bd319d263663f0 (diff)
downloadmpv-a737308f7347f88dc6b34ad63b74c7841078d64b.tar.bz2
mpv-a737308f7347f88dc6b34ad63b74c7841078d64b.tar.xz
m_config: hide no-* opts in --list-options, simplify positional subopts
All these --no-... options in --list-options made the output rather unreadable, so hide them. Make the code for finding positional parameters (which are supposed to skip these no-* options) slightly simpler too.
Diffstat (limited to 'core/m_config.h')
-rw-r--r--core/m_config.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/m_config.h b/core/m_config.h
index b31d7f5406..6a5c471867 100644
--- a/core/m_config.h
+++ b/core/m_config.h
@@ -37,8 +37,7 @@ struct m_obj_desc;
// Config option
struct m_config_option {
struct m_config_option *next;
- // For positional parameters
- int pos;
+ bool is_generated : 1;
// Full name (ie option-subopt).
char *name;
// Option description.
@@ -73,7 +72,6 @@ struct m_profile {
typedef struct m_config {
// Registered options.
struct m_config_option *opts; // all options, even suboptions
- int num_pos_opts;
// When options are set (via m_config_set_option or m_config_set_profile),
// back up the old value (unless it's already backed up). Used for restoring