diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-22 21:00:31 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-22 21:00:31 +0000 |
commit | 2422869fddb763a54fec74d2a626446a696a0aa6 (patch) | |
tree | decec6f5016546a2dad5a7f4953612ca246e1a00 /include/asterisk/config_pvt.h | |
parent | d3e7a8c8d071d94756a53a33cb988100304926ed (diff) |
repeal config prototype changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4878 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/config_pvt.h')
-rwxr-xr-x | include/asterisk/config_pvt.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/include/asterisk/config_pvt.h b/include/asterisk/config_pvt.h index 7d5273093..823be9533 100755 --- a/include/asterisk/config_pvt.h +++ b/include/asterisk/config_pvt.h @@ -14,49 +14,53 @@ extern "C" { struct ast_category { char name[80]; struct ast_variable *root; - struct ast_variable *last; struct ast_category *next; }; struct ast_config { + /* Maybe this structure isn't necessary but we'll keep it + for now */ struct ast_category *root; - struct ast_category *last; + struct ast_category *prev; }; -typedef struct ast_config *config_static_func(const char *database, const char *table, const char *configfile, struct ast_config *config, struct ast_category **cat, int includelevel); + +struct ast_category; struct ast_config_reg { char name[CONFIG_KEYWORD_STRLEN]; - config_static_func *static_func; + struct ast_config *(*static_func)(const char *database, const char *table, const char *, struct ast_config *,struct ast_category **,struct ast_variable **,int); struct ast_variable *(*realtime_func)(const char *database, const char *table, va_list ap); struct ast_config *(*realtime_multi_func)(const char *database, const char *table, va_list ap); int (*update_func)(const char *database, const char *table, const char *keyfield, const char *entity, va_list ap); struct ast_config_reg *next; }; + int ast_config_register(struct ast_config_reg *new); int ast_config_deregister(struct ast_config_reg *del); void ast_cust_config_on(void); void ast_cust_config_off(void); int ast_cust_config_active(void); void ast_config_destroy_all(void); -int ast_cust_config_register(struct ast_config_reg *new); -int ast_cust_config_deregister(struct ast_config_reg *new); -int register_config_cli(void); -int read_ast_cust_config(void); -struct ast_config *ast_new_config(void); +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); + +struct ast_config *ast_new_config(void); struct ast_category *ast_new_category(char *name); +struct ast_variable *ast_new_variable(char *name,char *value); void ast_category_append(struct ast_config *config, struct ast_category *cat); -int ast_category_delete(struct ast_config *cfg, char *category); void ast_category_destroy(struct ast_category *cat); +int ast_cust_config_register(struct ast_config_reg *new); +int ast_cust_config_deregister(struct ast_config_reg *new); +int register_config_cli(void); +int read_ast_cust_config(void); +struct ast_config *ast_internal_load(const char *configfile, struct ast_config *tmp, struct ast_category **_tmpc, struct ast_variable **_last, int includelevel); -struct ast_variable *ast_new_variable(char *name,char *value); -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); -struct ast_config *ast_internal_load(const char *configfile, struct ast_config *tmp, struct ast_category **cat, int includelevel); #if defined(__cplusplus) || defined(c_plusplus) } |