mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 22:08:28 +00:00
Version 0.1.12 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -20,10 +20,18 @@ extern "C" {
|
|||||||
|
|
||||||
struct ast_config;
|
struct ast_config;
|
||||||
|
|
||||||
|
struct ast_comment {
|
||||||
|
char *comment;
|
||||||
|
struct ast_comment *next;
|
||||||
|
};
|
||||||
|
|
||||||
struct ast_variable {
|
struct ast_variable {
|
||||||
char *name;
|
char *name;
|
||||||
char *value;
|
char *value;
|
||||||
int lineno;
|
int lineno;
|
||||||
|
int object; /* 0 for variable, 1 for object */
|
||||||
|
struct ast_comment *precomments;
|
||||||
|
struct ast_comment *sameline;
|
||||||
struct ast_variable *next;
|
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 */
|
* Browse config structure and check for category duplicity Return non-zero if found */
|
||||||
int ast_category_exist(struct ast_config *config, char *category_name);
|
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)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user