]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
as discussed with kevin, move
authorLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 15:55:56 +0000 (15:55 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 11 Apr 2006 15:55:56 +0000 (15:55 +0000)
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

include/asterisk.h
include/asterisk/module.h

index 97682423e1d71e135809711ca323c46ca7fdb4f8..38b0f67abd9d1fed2101341cc0e22060c7d16058 100644 (file)
@@ -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
index 5447a614df8b7d35389a67c1ffd2a8fe20624f3e..80d0b579391761e931bf9fa44c259428bc224efc 100644 (file)
@@ -260,20 +260,6 @@ int ast_module_reload(const char *name);
  */
 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.
  * This is required as a workaround to the fact that we do not