[asterisk-commits] trunk r19223 - in /trunk/include: asterisk.h
asterisk/module.h
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Apr 11 08:55:58 MST 2006
Author: rizzo
Date: Tue Apr 11 10:55:56 2006
New Revision: 19223
URL: http://svn.digium.com/view/asterisk?rev=19223&view=rev
Log:
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.
Modified:
trunk/include/asterisk.h
trunk/include/asterisk/module.h
Modified: trunk/include/asterisk.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk.h?rev=19223&r1=19222&r2=19223&view=diff
==============================================================================
--- trunk/include/asterisk.h (original)
+++ trunk/include/asterisk.h Tue Apr 11 10:55:56 2006
@@ -72,6 +72,20 @@
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)
Modified: trunk/include/asterisk/module.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/module.h?rev=19223&r1=19222&r2=19223&view=diff
==============================================================================
--- trunk/include/asterisk/module.h (original)
+++ trunk/include/asterisk/module.h Tue Apr 11 10:55:56 2006
@@ -259,20 +259,6 @@
* were found.
*/
char *ast_module_helper(const char *line, const char *word, int pos, int state, int rpos, int needsreload);
-
-/*!
- * \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 Given a function address, find the corresponding module.
More information about the asterisk-commits
mailing list