[Freeswitch-svn] [commit] r3144 - freeswitch/trunk/src/mod/applications/mod_skel

Freeswitch SVN mikej at freeswitch.org
Sat Oct 21 19:02:37 EDT 2006


Author: mikej
Date: Sat Oct 21 19:02:36 2006
New Revision: 3144

Modified:
   freeswitch/trunk/src/mod/applications/mod_skel/mod_skel.c

Log:
clarify in mod_skel. (thanks knhor).

Modified: freeswitch/trunk/src/mod/applications/mod_skel/mod_skel.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_skel/mod_skel.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_skel/mod_skel.c	Sat Oct 21 19:02:36 2006
@@ -24,6 +24,7 @@
  * Contributor(s):
  * 
  * Anthony Minessale II <anthmct at yahoo.com>
+ * Neal Horman <neal at wanlink dot com>
  *
  *
  * mod_skel.c -- Framework Demo Module
@@ -59,16 +60,21 @@
 
 /*
   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;
+}
 */



More information about the Freeswitch-svn mailing list