summaryrefslogtreecommitdiff
path: root/include/asterisk.h
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2016-10-26 22:40:49 -0400
committerCorey Farrell <git@cfware.com>2016-10-27 09:53:55 -0400
commita6e5bae3ef9fe498927e0b5f9318a64c9ff101a9 (patch)
tree5d927549d9c5358161420a4958eefefc9b5b0861 /include/asterisk.h
parent211a1003e4df38bc2e46d9df54f69f4994ac5b2e (diff)
Remove ASTERISK_REGISTER_FILE.
ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes all traces of it. Previously exported symbols removed: * __ast_register_file * __ast_unregister_file * ast_complete_source_filename This also removes the mtx_prof static variable that was declared when MTX_PROFILE was enabled. This variable was only used in lock.c so it is now initialized in that file only. ASTERISK-26480 #close Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
Diffstat (limited to 'include/asterisk.h')
-rw-r--r--include/asterisk.h71
1 files changed, 1 insertions, 70 deletions
diff --git a/include/asterisk.h b/include/asterisk.h
index f5ed09167..25737805b 100644
--- a/include/asterisk.h
+++ b/include/asterisk.h
@@ -152,78 +152,9 @@ int ast_shutting_down(void);
*/
int ast_shutdown_final(void);
-/*!
- * \brief Register the version of a source code file with the core.
- * \param file the source file name
- * \return nothing
- *
- * This function should not be called directly, but instead the
- * ASTERISK_REGISTER_FILE macro should be used to register a file with the core.
- */
-void __ast_register_file(const char *file);
-
-/*!
- * \brief Unregister a source code file from the core.
- * \param file the source file name
- * \return nothing
- *
- * This function should not be called directly, but instead the
- * ASTERISK_REGISTER_FILE macro should be used to automatically unregister
- * the file when the module is unloaded.
- */
-void __ast_unregister_file(const char *file);
-
-/*!
- * \brief Complete a source file name
- * \param partial The partial name of the file to look up.
- * \param n The n-th match to return.
- *
- * \retval NULL if there is no match for partial at the n-th position
- * \retval Matching source file name
- *
- * \note A matching source file is allocataed on the heap, and must be
- * free'd by the caller.
- */
-char *ast_complete_source_filename(const char *partial, int n);
-
-/*!
- * \brief Register/unregister a source code file with the core.
- *
- * This macro will place a file-scope constructor and destructor into the
- * source of the module using it; this will cause the file to be
- * registered with the Asterisk core (and unregistered) at the appropriate
- * times.
- *
- * Example:
- *
- * \code
- * ASTERISK_REGISTER_FILE()
- * \endcode
- */
#ifdef MTX_PROFILE
#define HAVE_MTX_PROFILE /* used in lock.h */
-#define ASTERISK_REGISTER_FILE() \
- static int mtx_prof = -1; /* profile mutex */ \
- static void __attribute__((constructor)) __register_file_version(void) \
- { \
- mtx_prof = ast_add_profile("mtx_lock_" __FILE__, 0); \
- __ast_register_file(__FILE__); \
- } \
- static void __attribute__((destructor)) __unregister_file_version(void) \
- { \
- __ast_unregister_file(__FILE__); \
- }
-#else /* !MTX_PROFILE */
-#define ASTERISK_REGISTER_FILE() \
- static void __attribute__((constructor)) __register_file_version(void) \
- { \
- __ast_register_file(__FILE__); \
- } \
- static void __attribute__((destructor)) __unregister_file_version(void) \
- { \
- __ast_unregister_file(__FILE__); \
- }
-#endif /* !MTX_PROFILE */
+#endif /* MTX_PROFILE */
/*!
* \brief support for event profiling