Skip to content

Commit b3bab46

Browse files
committed
fixed:plugin reload and update document
1 parent db3c10b commit b3bab46

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@ XEngine_APIService V3.11.0.1001
55
优化:编译脚本
66
修改:插件支持获取更多信息了
77
修改:删除了插件配置,不在需要
8+
修改:插件模块支持初始化参数了
89
修复:配置文件内存溢出问题
910

1011
ci:added debian and fedora system support
1112
update:depend library
1213
improved:make file build flags
1314
modify:get more info support for plugin module
1415
modify:delete plugin configure and plugin auto load support
16+
modify:init parameter and used now for plugin module
1517
fixed:memory leak for configure parse
1618
======================================================================================
1719
XEngine_APIService V3.10.0.1001

XEngine_Docment/Docment_en.docx

-4.11 KB
Binary file not shown.

XEngine_Docment/Docment_zh.docx

-400 Bytes
Binary file not shown.

XEngine_Release/XEngine_Config/XEngine_VersionConfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"XVer":[
3+
"3.11.0.1001 Build20250506",
34
"3.10.0.1001 Build20250416",
45
"3.9.0.1001 Build20250224",
56
"3.8.0.1001 Build20241227",

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_TaskGet/TaskGet_Reload.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ bool HTTPTask_TaskGet_Reload(LPCXSTR lpszClientAddr, LPCXSTR lpszOPCode)
2424
int nLuaCount = 0;
2525
int nLibCount = 0;
2626
XCHAR** pptszListFile;
27+
XENGINE_PLUGINPARAM st_PluginParam = {};
28+
_tcsxcpy(st_PluginParam.tszAPIVersion, st_ServiceConfig.st_XVer.pStl_ListVer->front().c_str());
29+
_tcsxcpy(st_PluginParam.tszXEngineVer, BaseLib_Version_XNumberStr());
30+
2731
ModulePlugin_Loader_Destory();
2832
ModulePlugin_Loader_Init();
2933
XLOG_PRINT(xhLog, XENGINE_HELPCOMPONENTS_XLOG_IN_LOGLEVEL_INFO, _X("HTTP客户端:%s,请求操作配置重载成功,加载插件配置成功"), lpszClientAddr);
@@ -32,15 +36,15 @@ bool HTTPTask_TaskGet_Reload(LPCXSTR lpszClientAddr, LPCXSTR lpszOPCode)
3236
for (int i = 0; i < nLibCount; i++)
3337
{
3438
//加载插件
35-
ModulePlugin_Loader_Insert(pptszListFile[i], 0);
39+
ModulePlugin_Loader_Insert(pptszListFile[i], 0, &st_PluginParam);
3640
}
3741
BaseLib_Memory_Free((XPPPMEM)&pptszListFile, nLibCount);
3842
}
3943
{
4044
SystemApi_File_EnumFileA(st_ServiceConfig.st_XPlugin.tszLuaPlugin, &pptszListFile, &nLuaCount, false, 1);
4145
for (int i = 0; i < nLuaCount; i++)
4246
{
43-
ModulePlugin_Loader_Insert(pptszListFile[i], 1);
47+
ModulePlugin_Loader_Insert(pptszListFile[i], 1, &st_PluginParam);
4448
}
4549
}
4650
HttpProtocol_Server_SendMsgEx(xhHTTPPacket, tszMsgBuffer, &nMsgLen, &st_HDRParam);

0 commit comments

Comments
 (0)