mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 20:04:50 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@19223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -71,6 +71,20 @@ int dnsmgr_init(void);
|
||||
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
|
||||
|
Reference in New Issue
Block a user