From 036a49478ff6cc19abfa06b7807bd4653eb9ce33 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 May 2015 21:03:14 +0200 Subject: m_config: make m_config_set_profile() use a name Is simpler and avoids exposing profile structs to a degree. --- options/m_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'options/m_config.h') 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); -- cgit v1.2.3