summaryrefslogtreecommitdiffstats
path: root/options/m_config.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-02 19:24:12 +0200
committerwm4 <wm4@nowhere>2016-09-02 21:21:47 +0200
commiteb14b18a33973021c30124775513795b689cec27 (patch)
treef4f5bb3c63c962ec0ea6f9c398a97f951b8d4446 /options/m_config.h
parent9770ce6c44cd26e7b9e5b525c3222281d32dcb6f (diff)
downloadmpv-eb14b18a33973021c30124775513795b689cec27.tar.bz2
mpv-eb14b18a33973021c30124775513795b689cec27.tar.xz
config: allow profile forward-references in default profile
This works by first parsing a config file into the default profile, and applying it once parsing the whole file is finished. This won't work across config files (not even if you include other config files via "include=file.conf").
Diffstat (limited to 'options/m_config.h')
-rw-r--r--options/m_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/options/m_config.h b/options/m_config.h
index 7a4c15a08e..1e23a2b0dd 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -230,6 +230,10 @@ struct m_profile *m_config_get_profile0(const struct m_config *config,
char *name);
struct m_profile *m_config_get_profile(const struct m_config *config, bstr name);
+// Apply and clear the default profile - it's the only profile that new config
+// files do not simply append to (for configfile parser).
+void m_config_finish_default_profile(struct m_config *config, int flags);
+
/* Get the profile with the given name, creating it if necessary.
* \param config The config object.
* \param arg The profile's name.