diff options
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) |