mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 05:48:33 +00:00
add remaining apps to new mod loader macros.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5401 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b9c9f4c9e9
commit
4e85a86775
4 files changed
+28
-92
No files matched your search
@@ -54,7 +54,7 @@ typedef enum {
|
||||
SEND_TYPE_NOMEDIA = 3
|
||||
} ls_how_t;
|
||||
|
||||
static void bcast_function(switch_core_session_t *session, char *data)
|
||||
SWITCH_STANDARD_APP(bcast_function)
|
||||
{
|
||||
switch_channel_t *channel;
|
||||
switch_socket_t *socket;
|
||||
@@ -228,36 +228,18 @@ static void bcast_function(switch_core_session_t *session, char *data)
|
||||
}
|
||||
|
||||
|
||||
static switch_application_interface_t bcast_application_interface = {
|
||||
/*.interface_name */ "esf_ls_page_group",
|
||||
/*.application_function */ bcast_function,
|
||||
NULL, NULL, NULL,
|
||||
/* flags */ SAF_NONE,
|
||||
/*.next */ NULL
|
||||
};
|
||||
|
||||
static switch_loadable_module_interface_t mod_ivrtest_module_interface = {
|
||||
/*.module_name = */ modname,
|
||||
/*.endpoint_interface = */ NULL,
|
||||
/*.timer_interface = */ NULL,
|
||||
/*.dialplan_interface = */ NULL,
|
||||
/*.codec_interface = */ NULL,
|
||||
/*.application_interface */ &bcast_application_interface
|
||||
};
|
||||
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_esf_load)
|
||||
{
|
||||
switch_application_interface_t *app_interface;
|
||||
|
||||
/* connect my internal structure to the blank pointer passed to me */
|
||||
*module_interface = &mod_ivrtest_module_interface;
|
||||
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
|
||||
SWITCH_ADD_APP(app_interface, "esf_ls_page_group", NULL, NULL, bcast_function, NULL, SAF_NONE);
|
||||
|
||||
/* indicate that the module should continue to be loaded */
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
//switch_status_t switch_module_runtime(void)
|
||||
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
||||
Reference in new issue
Block a user