[svn-commits] sgriepentrog: branch certified-1.8.28 r421033 - in /certified/branches/1.8.28...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Aug 14 12:30:00 CDT 2014
Author: sgriepentrog
Date: Thu Aug 14 12:29:54 2014
New Revision: 421033
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421033
Log:
config: inform config hook of change when writing file
When updated configuration is written back to the conf
file - for example when a user changes their voicemail
pin, make sure that any config hook that wants to know
of changes is informed.
Review: https://reviewboard.asterisk.org/r/3708/
Modified:
certified/branches/1.8.28/ (props changed)
certified/branches/1.8.28/main/config.c
Propchange: certified/branches/1.8.28/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Aug 14 12:29:54 2014
@@ -1,2 +1,2 @@
-/certified/branches/1.8.15:370667
+/certified/branches/1.8.15:370667,418367
/trunk:394552,394567
Modified: certified/branches/1.8.28/main/config.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.28/main/config.c?view=diff&rev=421033&r1=421032&r2=421033
==============================================================================
--- certified/branches/1.8.28/main/config.c (original)
+++ certified/branches/1.8.28/main/config.c Thu Aug 14 12:29:54 2014
@@ -70,7 +70,7 @@
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);
/*! \brief Structure to keep comments for rewriting configuration files */
struct ast_comment {
@@ -2157,6 +2157,9 @@
}
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;
}
@@ -3134,7 +3137,7 @@
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;
More information about the svn-commits
mailing list