📄 framedone.cpp
字号:
#include "stdafx.h"
#include "FrameDone.h"
#include "FrameInit.h" // 宏ThisServiceName
#include "..\..\..\lib\Call.h"
#include "..\..\..\lib\ZLog.h"
#include "..\..\..\lib\MiscLib.h"
int DoneRecvThread(void);
// 在这里各业务模块包含自己的头文件
//#include "YourHead.h"
// -------------------------------
/*---------------------------------------------------------------------
*
* 业务处理模块在这里卸载
*
*--------------------------------------------------------------------*/
int ServiceDone(const char * thisServiceName)
{
DoneRecvThread();
return 0;
}
/*---------------------------------------------------------------------
* 系统卸载,成功返回0,失败返回非0
*--------------------------------------------------------------------*/
int FrameDone(void)
{
int ret = 0;
// ---------------------------------------------------------------
// 卸载业务处理模块
// ---------------------------------------------------------------
if( ret=ServiceDone(ThisServiceName) )
{
Log("卸载业务处理模块失败,返回值%d",ret);
}
Log("卸载业务处理模块成功");
// 卸载通信中间件
if( ret=Call_Done(ThisServiceName) )
{
Log("卸载通信中间件失败,返回值%d",ret);
}
Log("卸载通信中间件成功");
if( ret=MiscLib_Done(ThisServiceName) )
{
Log("卸载杂项模块失败");
}
Log("卸载杂项模块成功");
// 日志
ZLog_Done(ThisServiceName);
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -