diff options
author | Terry Wilson <twilson@digium.com> | 2012-06-14 13:41:47 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-06-14 13:41:47 +0000 |
commit | cfa0826c492951b2c57f1350a7ed1bc3a97d6f9b (patch) | |
tree | 5704d80dc276db3a17f3d1c25a3849bf8f1c9c2e /main/config_options.c | |
parent | 01307e4b7bbf01f2ff7e5a0a9e9047e7b5cd789f (diff) |
Add a post_apply callback to the Config Options API
This adds a callback that only fires when changes have been successfully
applied via the Config Options API.
Review: https://reviewboard.asterisk.org/r/1980/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config_options.c')
-rw-r--r-- | main/config_options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/config_options.c b/main/config_options.c index 7baf67836..3d15991ac 100644 --- a/main/config_options.c +++ b/main/config_options.c @@ -480,6 +480,10 @@ try_alias: goto end; } + if (info->post_apply_config) { + info->post_apply_config(); + } + end: ao2_cleanup(info->internal->pending); return res; |