diff options
author | wm4 <wm4@nowhere> | 2015-05-07 21:03:14 +0200 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-05-08 16:38:46 +0900 |
commit | 375437f204e8ed670c49158c73f8ae8e1bb096e6 (patch) | |
tree | cde4676ff3b260bfec747d13042a145e6990547e /options/m_config.h | |
parent | ceea08d7fe337738aec9281b2cdf749b7e946799 (diff) | |
download | mpv-375437f204e8ed670c49158c73f8ae8e1bb096e6.tar.bz2 mpv-375437f204e8ed670c49158c73f8ae8e1bb096e6.tar.xz |
m_config: make m_config_set_profile() use a name
Is simpler and avoids exposing profile structs to a degree.
(cherry picked from commit 036a49478ff6cc19abfa06b7807bd4653eb9ce33)
Diffstat (limited to 'options/m_config.h')
-rw-r--r-- | options/m_config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/options/m_config.h b/options/m_config.h index ba14c058f7..4b29c9cde3 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -241,9 +241,9 @@ int m_config_set_profile_option(struct m_config *config, struct m_profile *p, * \param config The config object. * \param p The profile object. * \param flags M_SETOPT_* bits + * Returns error code (<0) or 0 on success */ -void m_config_set_profile(struct m_config *config, struct m_profile *p, - int flags); +int m_config_set_profile(struct m_config *config, char *name, int flags); void *m_config_alloc_struct(void *talloc_ctx, const struct m_sub_options *subopts); |