summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index 932404d14..86c2bb5dd 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -450,6 +450,17 @@ int ast_check_realtime(const char *family);
int ast_realtime_enabled(void);
/*!
+ * \brief Duplicate variable list
+ * \param var the linked list of variables to clone
+ * \return A duplicated list which you'll need to free with
+ * ast_variables_destroy or NULL when out of memory.
+ *
+ * \note Do not depend on this to copy more than just name, value and filename
+ * (the arguments to ast_variables_new).
+ */
+struct ast_variable *ast_variables_dup(struct ast_variable *var);
+
+/*!
* \brief Free variable list
* \param var the linked list of variables to free
*