diff options
author | wm4 <wm4@nowhere> | 2015-04-10 20:40:50 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-10 20:40:50 +0200 |
commit | cf55fa64710bdd5999b437f0cccdb036324ae11e (patch) | |
tree | e94bffc57312838511b6fa44cd446a0fd280fc2e /options | |
parent | 1e692cb043ac109d734de366859298d28d96b2ed (diff) | |
download | mpv-cf55fa64710bdd5999b437f0cccdb036324ae11e.tar.bz2 mpv-cf55fa64710bdd5999b437f0cccdb036324ae11e.tar.xz |
player: use config parser for setting up pseudo-gui profile
Diffstat (limited to 'options')
-rw-r--r-- | options/parse_configfile.c | 4 | ||||
-rw-r--r-- | options/parse_configfile.h | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/options/parse_configfile.c b/options/parse_configfile.c index b97fd382ed..42e47689db 100644 --- a/options/parse_configfile.c +++ b/options/parse_configfile.c @@ -42,8 +42,8 @@ static bool skip_ws(bstr *s) return s->len; } -static int m_config_parse(m_config_t *config, const char *location, bstr data, - char *initial_section, int flags) +int m_config_parse(m_config_t *config, const char *location, bstr data, + char *initial_section, int flags) { m_profile_t *profile = m_config_add_profile(config, initial_section); void *tmp = talloc_new(NULL); diff --git a/options/parse_configfile.h b/options/parse_configfile.h index 4a42cee001..3cf54b54db 100644 --- a/options/parse_configfile.h +++ b/options/parse_configfile.h @@ -24,4 +24,7 @@ int m_config_parse_config_file(m_config_t* config, const char *conffile, char *initial_section, int flags); +int m_config_parse(m_config_t *config, const char *location, bstr data, + char *initial_section, int flags); + #endif /* MPLAYER_PARSER_CFG_H */ |