aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/config.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-04-23 19:05:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-04-23 19:05:55 +0000
commitf30f9d72735be4ddc4bef2491000a3e2402051fd (patch)
tree5d88fb4b68d34b95546c870c7051877fab6d958a /include/asterisk/config.h
parent78cb84239fd1d60ee04830398e99494b3106089e (diff)
Version 0.1.12 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@435 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/config.h')
-rwxr-xr-xinclude/asterisk/config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/config.h b/include/asterisk/config.h
index cb7d7e44e..ff7ad4539 100755
--- a/include/asterisk/config.h
+++ b/include/asterisk/config.h
@@ -20,10 +20,18 @@ extern "C" {
struct ast_config;
+struct ast_comment {
+ char *comment;
+ struct ast_comment *next;
+};
+
struct ast_variable {
char *name;
char *value;
int lineno;
+ int object; /* 0 for variable, 1 for object */
+ struct ast_comment *precomments;
+ struct ast_comment *sameline;
struct ast_variable *next;
};
@@ -86,6 +94,13 @@ int ast_true(char *val);
* Browse config structure and check for category duplicity Return non-zero if found */
int ast_category_exist(struct ast_config *config, char *category_name);
+/* These are only in the config engine at this point */
+struct ast_variable *ast_variable_append_modify(struct ast_config *cfg, char *category, char *variable, char *newvalue, int newcat, int newvar, int move);
+
+int ast_category_delete(struct ast_config *cfg, char *category);
+int ast_variable_delete(struct ast_config *cfg, char *category, char *variable, char *value);
+int ast_save(char *filename, struct ast_config *cfg, char *generator);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif