[Freeswitch-svn] [commit] r3138 - freeswitch/branches/knhor/trunk/src/mod/applications/mod_skel
Freeswitch SVN
knhor at freeswitch.org
Sat Oct 21 13:02:17 EDT 2006
Author: knhor
Date: Sat Oct 21 13:02:15 2006
New Revision: 3138
Modified:
freeswitch/branches/knhor/trunk/src/mod/applications/mod_skel/mod_skel.c
Log:
tidy up and add switch_module_runtime
Modified: freeswitch/branches/knhor/trunk/src/mod/applications/mod_skel/mod_skel.c
==============================================================================
--- freeswitch/branches/knhor/trunk/src/mod/applications/mod_skel/mod_skel.c (original)
+++ freeswitch/branches/knhor/trunk/src/mod/applications/mod_skel/mod_skel.c Sat Oct 21 13:02:15 2006
@@ -59,16 +59,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