mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
move some modules to use the new module interface macros.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5343 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -43,7 +43,9 @@
|
||||
#define DL_EVENT_CONNECTED "dingaling::connected"
|
||||
#define MDL_CHAT_PROTO "jingle"
|
||||
|
||||
static const char modname[] = "mod_dingaling";
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_dingaling_load);
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_dingaling_shutdown);
|
||||
SWITCH_MODULE_DEFINITION(mod_dingaling, mod_dingaling_load, mod_dingaling_shutdown, NULL);
|
||||
|
||||
static switch_memory_pool_t *module_pool = NULL;
|
||||
|
||||
@@ -1824,7 +1826,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
||||
|
||||
}
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_dingaling_load)
|
||||
{
|
||||
|
||||
if (switch_core_new_memory_pool(&module_pool) != SWITCH_STATUS_SUCCESS) {
|
||||
@@ -1927,8 +1929,7 @@ static switch_status_t init_profile(mdl_profile_t *profile, uint8_t login)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_dingaling_shutdown)
|
||||
{
|
||||
sign_off();
|
||||
|
||||
|
||||
@@ -39,7 +39,9 @@
|
||||
|
||||
#define MY_EVENT_RINGING "portaudio::ringing"
|
||||
|
||||
static const char modname[] = "mod_portaudio";
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_portaudio_load);
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_portaudio_shutdown);
|
||||
SWITCH_MODULE_DEFINITION(mod_portaudio, mod_portaudio_load, mod_portaudio_shutdown, NULL);
|
||||
|
||||
static switch_memory_pool_t *module_pool = NULL;
|
||||
//static int running = 1;
|
||||
@@ -872,7 +874,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
||||
}
|
||||
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_portaudio_load)
|
||||
{
|
||||
|
||||
switch_status_t status;
|
||||
@@ -1039,7 +1041,7 @@ static switch_status_t load_config(void)
|
||||
return status;
|
||||
}
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_portaudio_shutdown)
|
||||
{
|
||||
if (globals.read_codec.implementation) {
|
||||
switch_core_codec_destroy(&globals.read_codec);
|
||||
|
||||
@@ -48,7 +48,10 @@
|
||||
//#define MEDIA_ANSWER "ANSWER"
|
||||
//#define USE_ANSWER 1
|
||||
|
||||
static const char modname[] = "mod_woomera";
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_woomera_load);
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_woomera_shutdown);
|
||||
SWITCH_MODULE_RUNTIME_FUNCTION(mod_woomera_runtime);
|
||||
SWITCH_MODULE_DEFINITION(mod_woomera, mod_woomera_load, mod_woomera_shutdown, mod_woomera_runtime);
|
||||
|
||||
static switch_memory_pool_t *module_pool = NULL;
|
||||
|
||||
@@ -1269,7 +1272,7 @@ static void *woomera_thread_run(void *obj)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_runtime(void)
|
||||
SWITCH_MODULE_RUNTIME_FUNCTION(mod_woomera_runtime)
|
||||
{
|
||||
|
||||
woomera_thread_run(&default_profile);
|
||||
@@ -1277,7 +1280,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_runtime(void)
|
||||
return SWITCH_STATUS_TERM;
|
||||
}
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
|
||||
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_woomera_shutdown)
|
||||
{
|
||||
int x = 0;
|
||||
woomera_profile_thread_running(&default_profile, 1, 0);
|
||||
@@ -1291,7 +1294,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_module_interface_t **module_interface, char *filename)
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_woomera_load)
|
||||
{
|
||||
|
||||
struct woomera_profile *profile = &default_profile;
|
||||
|
||||
Reference in New Issue
Block a user