Skip to content

Commit 3906c67

Browse files
committed
configure module:added bUPHash configure
1 parent 82b9fb5 commit 3906c67

File tree

3 files changed

+206
-132
lines changed

3 files changed

+206
-132
lines changed

XEngine_Source/StorageModule_Config/Config_Define.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef struct tag_XEngine_ServerConfig
6464
struct
6565
{
6666
BOOL bResumable;
67+
BOOL bUPHash;
6768
int nHashMode;
6869
TCHAR tszFileDir[MAX_PATH];
6970
}st_XStorage;
@@ -134,5 +135,41 @@ extern "C" DWORD Config_GetLastError(int *pInt_ErrorCode = NULL);
134135
/************************************************************************/
135136
/* 文件配置读取 */
136137
/************************************************************************/
138+
/********************************************************************
139+
函数名称:Config_Json_File
140+
函数功能:读取基本配置文件
141+
参数.一:lpszConfigFile
142+
In/Out:In
143+
类型:常量字符指针
144+
可空:N
145+
意思:输入配置文件
146+
参数.二:pSt_ServerConfig
147+
In/Out:Out
148+
类型:数据结构指针
149+
可空:N
150+
意思:输出读取到的信息
151+
返回值
152+
类型:逻辑型
153+
意思:是否成功
154+
备注:
155+
*********************************************************************/
137156
extern "C" BOOL Config_Json_File(LPCTSTR lpszConfigFile, XENGINE_SERVERCONFIG * pSt_ServerConfig);
157+
/********************************************************************
158+
函数名称:Config_Json_LoadBalance
159+
函数功能:读取负载均衡配置文件
160+
参数.一:lpszConfigFile
161+
In/Out:In
162+
类型:常量字符指针
163+
可空:N
164+
意思:输入配置文件
165+
参数.二:pSt_ServerConfig
166+
In/Out:Out
167+
类型:数据结构指针
168+
可空:N
169+
意思:输出读取到的信息
170+
返回值
171+
类型:逻辑型
172+
意思:是否成功
173+
备注:
174+
*********************************************************************/
138175
extern "C" BOOL Config_Json_LoadBalance(LPCTSTR lpszConfigFile, XENGINE_LBCONFIG * pSt_ServerConfig);

0 commit comments

Comments
 (0)