提交 1bc0db0d authored 作者: Michael Jerris's avatar Michael Jerris

clarify in mod_skel. (thanks knhor).

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3144 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d0f877a3
......@@ -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)
{
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)
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)
{
return SWITCH_STATUS_SUCCESS;
switch_yield(1000);
}
return SWITCH_STATUS_TERM;
}
*/
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论