summaryrefslogtreecommitdiff
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-08-05 18:25:16 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-08-05 18:25:16 +0000
commitff101d0b072f364756063574a95bcb6a3c1c1fb0 (patch)
treeb153d3d37d67bea4df0fbc121a1c83f3e8e28de2 /include/asterisk/config.h
parentf24d7a89f56d94408edc092626ff7886e5f68d8d (diff)
Add '+=' append operator to configuration files.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/config.h')
-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);