diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-05 15:51:53 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-05 15:51:53 +0000 |
commit | eb02aa69b9a111b1bcd63c170a2048dc67560b81 (patch) | |
tree | 2b99d894a46c9f12785e2e840661614cb0913938 /include | |
parent | 57a489abfdcdbf55b611feac52794e0ad9e953fb (diff) |
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/branches/1.4@67308 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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 1d00f4504..b1585b60f 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -134,6 +134,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 |