Add '+=' append operator to configuration files.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@135717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-08-05 18:25:16 +00:00
parent f24d7a89f5
commit ff101d0b07
4 changed files with 101 additions and 49 deletions

View File

@@ -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);