From aa36c7a588ab6842035d212b517746550a5ba7e6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 1 Nov 2007 19:05:16 +0000 Subject: [PATCH] clean up skel, could use more.... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6134 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_skel/mod_skel.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/mod/applications/mod_skel/mod_skel.c b/src/mod/applications/mod_skel/mod_skel.c index 8d1e32a287..fb51170b1e 100644 --- a/src/mod/applications/mod_skel/mod_skel.c +++ b/src/mod/applications/mod_skel/mod_skel.c @@ -38,23 +38,10 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_skel_load); SWITCH_MODULE_DEFINITION(mod_skel, mod_skel_load, NULL, NULL); -static switch_loadable_module_interface_t skel_module_interface = { - /*.module_name */ modname, - /*.endpoint_interface */ NULL, - /*.timer_interface */ NULL, - /*.dialplan_interface */ NULL, - /*.codec_interface */ NULL, - /*.application_interface */ NULL, - /*.api_interface */ NULL, - /*.file_interface */ NULL, - /*.speech_interface */ NULL, - /*.directory_interface */ NULL -}; - SWITCH_MODULE_LOAD_FUNCTION(mod_skel_load) { /* connect my internal structure to the blank pointer passed to me */ - *module_interface = &skel_module_interface; + *module_interface = switch_loadable_module_create_module_interface(pool, modname); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Hello World!\n");