summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-12-16 16:11:11 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-12-16 16:11:11 +0100
commit3e68bd83525b5fc295e39223d50a497e5da44b83 (patch)
tree1b5fb808f5a8eb3039d6e28b890c16f00b046770
parent97452c2a32dea086db945bd34a2ce9fbe93b3238 (diff)
config: update doxygen comments
-rw-r--r--src/config.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index d762d33..ce748d3 100644
--- a/src/config.c
+++ b/src/config.c
@@ -178,6 +178,14 @@ static int conf_get_aufmt(const struct conf *conf, const char *name,
}
+/**
+ * Parse the core configuration file and update baresip core config
+ *
+ * @param cfg Baresip core config to update
+ * @param conf Configuration file to parse
+ *
+ * @return 0 if success, otherwise errorcode
+ */
int config_parse_conf(struct config *cfg, const struct conf *conf)
{
struct pl pollm, as, ap;
@@ -320,6 +328,14 @@ int config_parse_conf(struct config *cfg, const struct conf *conf)
}
+/**
+ * Print the baresip core config
+ *
+ * @param pf Print function
+ * @param cfg Baresip core config
+ *
+ * @return 0 if success, otherwise errorcode
+ */
int config_print(struct re_printf *pf, const struct config *cfg)
{
int err;
@@ -638,6 +654,14 @@ static const char *detect_module_path(bool *valid)
}
+/**
+ * Write the baresip core config template to a file
+ *
+ * @param file Filename of output file
+ * @param cfg Baresip core config
+ *
+ * @return 0 if success, otherwise errorcode
+ */
int config_write_template(const char *file, const struct config *cfg)
{
FILE *f = NULL;
@@ -890,6 +914,11 @@ int config_write_template(const char *file, const struct config *cfg)
}
+/**
+ * Get the baresip core config
+ *
+ * @return Core config
+ */
struct config *conf_config(void)
{
return &core_config;