From bc241ba4259a47f14364e944322d369f44ebd847 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 14 Feb 2006 16:53:15 +0000 Subject: [PATCH] add headers for module funcs to avoid warnings git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@610 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_loadable_module.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/include/switch_loadable_module.h b/src/include/switch_loadable_module.h index 5f39f473e3..adc9572a9d 100644 --- a/src/include/switch_loadable_module.h +++ b/src/include/switch_loadable_module.h @@ -188,6 +188,27 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(switch_memory_pool \return the status returned by the API call */ SWITCH_DECLARE(switch_status) switch_api_execute(char *cmd, char *arg, char *retbuf, size_t len); + +/* Prototypes of module interface functions */ + +/*! + \brief Load a module + \param interface a pointer to a pointer to aim at your module's local interface + \param filename the path to the module's dll or so file + \return SWITCH_STATUS_SUCCESS on a successful load +*/ +switch_status switch_module_load(const switch_loadable_module_interface **interface, char *filename); +switch_status switch_module_reload(void); +switch_status switch_module_pause(void); +switch_status switch_module_resume(void); +switch_status switch_module_status(void); +switch_status switch_module_runtime(void); + +/*! + \brief Shutdown a module + \return SWITCH_STATUS_SUCCESS on a successful shutdown +*/ +switch_status switch_module_shutdown(void); ///\} #ifdef __cplusplus