diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-05 15:54:36 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-05 15:54:36 +0000 |
commit | 3e6e0efc4fbd96edef25ef77fa724a30315f9342 (patch) | |
tree | 299f09a143a0dc32fe4717f35700fca9c04113df /include/asterisk/module.h | |
parent | 838b92749ff4672195e8fad549405b7812513a08 (diff) |
Merged revisions 67308 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r67308 | russell | 2007-06-05 10:51:53 -0500 (Tue, 05 Jun 2007) | 5 lines
When shutting down "gracefully", go through and run the unload() callbacks for
all of the modules. "stop now" is considered a non-graceful shutdown and will
not go through this process.
(issue #9804, reported by chrisost, patch by me)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67310 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/module.h')
-rw-r--r-- | include/asterisk/module.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 075d6a376..73bea557e 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -141,6 +141,13 @@ int ast_loader_register(int (*updater)(void)); */ int ast_loader_unregister(int (*updater)(void)); +/*! + * \brief Run the unload() callback for all loaded modules + * + * This function should be called when Asterisk is shutting down gracefully. + */ +void ast_module_shutdown(void); + /*! * \brief Match modules names for the Asterisk cli. * \param line Unused by this function, but this should be the line we are |