From 816ad035191970decb17086f5c011edffc257b6c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 21 May 2018 13:45:06 +0200 Subject: m_config: remove extra default_data field Just wastes memory (a few KB, because there are so many options). --- options/m_config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options/m_config.h') diff --git a/options/m_config.h b/options/m_config.h index 8a8dba8461..19da75e83c 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -47,7 +47,6 @@ struct m_config_option { const char *name; // Full name (ie option-subopt) const struct m_option *opt; // Option description void *data; // Raw value of the option - const void *default_data; // Raw default value }; // Config object @@ -179,6 +178,8 @@ struct m_config_option *m_config_get_co(const struct m_config *config, int m_config_get_co_count(struct m_config *config); struct m_config_option *m_config_get_co_index(struct m_config *config, int index); +const void *m_config_get_co_default(const struct m_config *config, + struct m_config_option *co); // Return the n-th option by position. n==0 is the first option. If there are // less than (n + 1) options, return NULL. -- cgit v1.2.3