]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
clean up skel, could use more....
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 1 Nov 2007 19:05:16 +0000 (19:05 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 1 Nov 2007 19:05:16 +0000 (19:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6134 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_skel/mod_skel.c

index 8d1e32a287ad9bdae8e7cd0d8d4aef646e534e09..fb51170b1e6708fc59ba4415eba4d8508de34cb9 100644 (file)
 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");