summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--m_config.c2
-rw-r--r--m_config.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/m_config.c b/m_config.c
index c1b0543f92..c6cbbc89ad 100644
--- a/m_config.c
+++ b/m_config.c
@@ -477,7 +477,7 @@ m_config_set_profile_option(m_config_t* config, m_profile_t* p,
return 1;
}
-static void
+void
m_config_set_profile(m_config_t* config, m_profile_t* p) {
int i;
if(config->profile_depth > MAX_PROFILE_DEPTH) {
diff --git a/m_config.h b/m_config.h
index a1dc550084..5c7f1d26f5 100644
--- a/m_config.h
+++ b/m_config.h
@@ -193,6 +193,15 @@ int
m_config_set_profile_option(m_config_t* config, m_profile_t* p,
char* name, char* val);
+/// Enables profile usage
+/** Used by the config file parser when loading a profile.
+ *
+ * \param config The config object.
+ * \param p The profile object.
+ */
+void
+m_config_set_profile(m_config_t* config, m_profile_t* p);
+
///@}
///@}