X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconf.h;h=d01a237c004ebc27d09dbba29e3488db71868e2a;hb=d93d4f9dbd09bc5e53a9b5eeb1cc94939fee32bc;hp=3cf677d560dde6855e590f291fb79bab0e4df566;hpb=3d787920d51a35e74e442c7265be3b13b69ad8e4;p=tinc diff --git a/src/conf.h b/src/conf.h index 3cf677d5..d01a237c 100644 --- a/src/conf.h +++ b/src/conf.h @@ -40,11 +40,11 @@ extern int maxtimeout; extern bool bypass_security; extern list_t cmdline_conf; -extern splay_tree_t *create_configuration(void); +extern void exit_configuration(splay_tree_t *config_tree); +extern splay_tree_t *create_configuration(void) ATTR_MALLOC ATTR_DEALLOCATOR(exit_configuration); extern void init_configuration(splay_tree_t *); -extern void exit_configuration(splay_tree_t **config_tree); -extern config_t *new_config(void) ATTR_MALLOC; extern void free_config(config_t *config); +extern config_t *new_config(void) ATTR_MALLOC ATTR_DEALLOCATOR(free_config); extern void config_add(splay_tree_t *config_tree, config_t *config); extern config_t *lookup_config(splay_tree_t *config_tree, const char *variable); extern config_t *lookup_config_next(splay_tree_t *config_tree, const config_t *config);