static char *extconfig_conf = "extconfig.conf";
static struct ao2_container *cfg_hooks;
-static void config_hook_exec(const char *filename, const char *module, struct ast_config *cfg);
+static void config_hook_exec(const char *filename, const char *module, const struct ast_config *cfg);
inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2);
/*! \brief Structure to keep comments for rewriting configuration files */
}
ao2_ref(fileset, -1); /* this should destroy the hash container */
+ /* pass new configuration to any config hooks */
+ config_hook_exec(configfile, generator, cfg);
+
return 0;
}
ao2_find(cfg_hooks, &tmp, OBJ_POINTER | OBJ_UNLINK | OBJ_NODATA);
}
-static void config_hook_exec(const char *filename, const char *module, struct ast_config *cfg)
+static void config_hook_exec(const char *filename, const char *module, const struct ast_config *cfg)
{
struct ao2_iterator it;
struct cfg_hook *hook;