diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-11 15:55:56 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-11 15:55:56 +0000 |
commit | bd041a8d8e91d922c6a8b11fd90096c6830f2f47 (patch) | |
tree | f4cacc01a944a8dac2060592a3a1f8398b7e7318 /include/asterisk.h | |
parent | 7b0f075035427d4380119acba04b55b1687105da (diff) |
as discussed with kevin, move
ast_register_atexit()/ ast_unregister_atexit() into asterisk.h
These are general functions, not restricted to modules, so move
them in a more proper place.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19223 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk.h')
-rw-r--r-- | include/asterisk.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk.h b/include/asterisk.h index 97682423e..38b0f67ab 100644 --- a/include/asterisk.h +++ b/include/asterisk.h @@ -72,6 +72,20 @@ void dnsmgr_start_refresh(void); int dnsmgr_reload(void); /*! + * \brief Register a function to be executed before Asterisk exits. + * \param func The callback function to use. + * + * \return Zero on success, -1 on error. + */ +int ast_register_atexit(void (*func)(void)); + +/*! + * \brief Unregister a function registered with ast_register_atexit(). + * \param func The callback function to unregister. + */ +void ast_unregister_atexit(void (*func)(void)); + +/*! * \brief Register the version of a source code file with the core. * \param file the source file name * \param version the version string (typically a CVS revision keyword string) |