mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
move mod_commands to use new module loader interfaces.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5397 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -257,18 +257,24 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_unload_module(char *dir,
|
||||
\return SWITCH_STATUS_SUCCESS on a successful load
|
||||
*/
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename);
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_reload(void);
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_pause(void);
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_resume(void);
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_status(void);
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_runtime(void);
|
||||
|
||||
|
||||
/*!
|
||||
\brief Shutdown a module
|
||||
\return SWITCH_STATUS_SUCCESS on a successful shutdown
|
||||
*/
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void);
|
||||
|
||||
#define SWITCH_ADD_API(api_int, int_name, descript, funcptr, syntax_string) \
|
||||
for (;;) { \
|
||||
api_int = switch_loadable_module_create_interface(*module_interface, SWITCH_API_INTERFACE); \
|
||||
api_int->interface_name = int_name; \
|
||||
api_int->desc = descript; \
|
||||
api_int->function = funcptr; \
|
||||
api_int->syntax = syntax_string; \
|
||||
break; \
|
||||
}
|
||||
|
||||
///\}
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
|
||||
Reference in New Issue
Block a user