From 1bc0db0db6b55bc9180696d220bd0ea69dcbeb8f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 21 Oct 2006 23:02:36 +0000 Subject: [PATCH] clarify in mod_skel. (thanks knhor). git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3144 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_skel/mod_skel.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/mod/applications/mod_skel/mod_skel.c b/src/mod/applications/mod_skel/mod_skel.c index 90821b6f5e..b3cd6df053 100644 --- a/src/mod/applications/mod_skel/mod_skel.c +++ b/src/mod/applications/mod_skel/mod_skel.c @@ -24,6 +24,7 @@ * Contributor(s): * * Anthony Minessale II + * Neal Horman * * * mod_skel.c -- Framework Demo Module @@ -59,16 +60,21 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod /* Called when the system shuts down - SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void) - { - return SWITCH_STATUS_SUCCESS; - } +SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void) +{ + return SWITCH_STATUS_SUCCESS; +} */ /* If it exists, this is called in it's own thread when the module-load completes - SWITCH_MOD_DECLARE(switch_status) switch_module_shutdown(void) - { - return SWITCH_STATUS_SUCCESS; - } + If it returns anything but SWITCH_STATUS_TERM it will be called again automaticly +SWITCH_MOD_DECLARE(switch_status_t) switch_module_runtime(void) +{ + while(looping) + { + switch_yield(1000); + } + return SWITCH_STATUS_TERM; +} */