]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
clarify in mod_skel. (thanks knhor).
authorMichael Jerris <mike@jerris.com>
Sat, 21 Oct 2006 23:02:36 +0000 (23:02 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 21 Oct 2006 23:02:36 +0000 (23:02 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3144 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_skel/mod_skel.c

index 90821b6f5e944a7c6d2e97e1398a0534e12876e1..b3cd6df053fa351d18c2979473fa11274872680f 100644 (file)
@@ -24,6 +24,7 @@
  * Contributor(s):
  * 
  * Anthony Minessale II <anthmct@yahoo.com>
+ * Neal Horman <neal at wanlink dot com>
  *
  *
  * 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;
+}
 */