summaryrefslogtreecommitdiffstats
path: root/mpvcore/m_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/m_config.h')
-rw-r--r--mpvcore/m_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mpvcore/m_config.h b/mpvcore/m_config.h
index 1098c5635c..c4c20a2ca5 100644
--- a/mpvcore/m_config.h
+++ b/mpvcore/m_config.h
@@ -33,6 +33,7 @@ struct m_option;
struct m_option_type;
struct m_sub_options;
struct m_obj_desc;
+struct m_obj_settings;
// Config option
struct m_config_option {
@@ -87,6 +88,11 @@ struct m_config *m_config_from_obj_desc_noalloc(void *talloc_ctx,
int m_config_set_obj_params(struct m_config *conf, char **args);
+// Search for the object with the given name in the defaults list, and apply
+// its parameters.
+int m_config_apply_defaults(struct m_config *config, const char *name,
+ struct m_obj_settings *defaults);
+
// Initialize an object (VO/VF/...) in one go, including legacy handling.
// This is pretty specialized, and is just for convenience.
int m_config_initialize_obj(struct m_config *config, struct m_obj_desc *desc,