aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-05 18:25:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-05 18:25:16 +0000
commit52a47a16b543c6767b42743c0b64907fddc31730 (patch)
treeb153d3d37d67bea4df0fbc121a1c83f3e8e28de2 /include
parentd5a8a002db6fe18f72f703bc9cab88c03351a8bc (diff)
Add '+=' append operator to configuration files.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135717 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index b6c5dbd14..a12d12bf6 100644
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -339,6 +339,15 @@ void ast_include_rename(struct ast_config *conf, const char *from_file, const ch
void ast_variable_append(struct ast_category *category, struct ast_variable *variable);
void ast_variable_insert(struct ast_category *category, struct ast_variable *variable, const char *line);
int ast_variable_delete(struct ast_category *category, const char *variable, const char *match, const char *line);
+
+/*! \brief Update variable value within a config
+ * \param category Category element within the config
+ * \param variable Name of the variable to change
+ * \param value New value of the variable
+ * \param match If set, previous value of the variable (if NULL or zero-length, no matching will be done)
+ * \param object Boolean of whether to make the new variable an object
+ * \return 0 on success or -1 on failure.
+ */
int ast_variable_update(struct ast_category *category, const char *variable,
const char *value, const char *match, unsigned int object);