summaryrefslogtreecommitdiffstats
path: root/options/m_config.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-06-09 23:46:53 +0200
committerwm4 <wm4@nowhere>2014-06-11 00:34:41 +0200
commit98c0930f9b69122996cc725a08336ee6bd9abc7e (patch)
tree655c8f95cbb1da28e694218dac559fd08a791756 /options/m_config.h
parente033f3c8bcf66de44b0cc25e543a85f19fc9f964 (diff)
downloadmpv-98c0930f9b69122996cc725a08336ee6bd9abc7e.tar.bz2
mpv-98c0930f9b69122996cc725a08336ee6bd9abc7e.tar.xz
m_config: add function to copy subopt-struct
Diffstat (limited to 'options/m_config.h')
-rw-r--r--options/m_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/options/m_config.h b/options/m_config.h
index 5a6274b945..e20a99853f 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -237,4 +237,10 @@ void m_config_set_profile(struct m_config *config, struct m_profile *p,
void *m_config_alloc_struct(void *talloc_ctx,
const struct m_sub_options *subopts);
+// Create a copy of the struct ptr, described by opts.
+// "opts" must live until the struct is free'd.
+// Freeing the struct frees all members.
+void *m_sub_options_copy(void *talloc_ctx, const struct m_sub_options *opts,
+ const void *ptr);
+
#endif /* MPLAYER_M_CONFIG_H */