Skip to content

Commit 6cad0cb

Browse files
committed
added:bmi module
1 parent 490d6af commit 6cad0cb

File tree

13 files changed

+649
-0
lines changed

13 files changed

+649
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#pragma once
2+
/********************************************************************
3+
// Created: 2022/07/20 09:57:09
4+
// File Name: H:\XEngine_APIService\XEngine_Source\XEngine_PluginModule\ModulePlugin_Timezone\Timezone_Define.h
5+
// File Path: H:\XEngine_APIService\XEngine_Source\XEngine_PluginModule\ModulePlugin_Timezone
6+
// File Base: Timezone_Define
7+
// File Ext: h
8+
// Project: XEngine(网络通信引擎)
9+
// Author: qyt
10+
// Purpose: 时区工具导出定义
11+
// History:
12+
*********************************************************************/
13+
//////////////////////////////////////////////////////////////////////////
14+
// 导出函数定义
15+
//////////////////////////////////////////////////////////////////////////
16+
extern "C" DWORD PluginCore_GetLastError();
17+
/*********************************************************************************
18+
* 导出函数定义 *
19+
*********************************************************************************/
20+
/********************************************************************
21+
函数名称:PluginCore_Init
22+
函数功能:初始化插件模块
23+
参数.一:lParam
24+
In/Out:In/Out
25+
类型:无类型指针
26+
可空:N
27+
意思:自定义参数
28+
返回值
29+
类型:逻辑型
30+
意思:是否成功
31+
备注:
32+
*********************************************************************/
33+
extern "C" BOOL PluginCore_Init(LPVOID lParam = NULL);
34+
/********************************************************************
35+
函数名称:PluginCore_UnInit
36+
函数功能:卸载插件
37+
返回值
38+
类型:逻辑型
39+
意思:是否成功
40+
备注:
41+
*********************************************************************/
42+
extern "C" BOOL PluginCore_UnInit();
43+
/********************************************************************
44+
函数名称:PluginCore_Call
45+
函数功能:调用插件
46+
返回值
47+
类型:逻辑型
48+
意思:是否成功
49+
备注:
50+
*********************************************************************/
51+
extern "C" BOOL PluginCore_Call(TCHAR * **pppHDRList, int nListCount, int* pInt_HTTPCode, TCHAR * ptszMsgBuffer, int* pInt_MsgLen, LPCTSTR lpszMsgBuffer = NULL, int nMsgLen = 0);
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#pragma once
2+
/********************************************************************
3+
// Created: 2022/07/20 16:40:17
4+
// File Name: H:\XEngine_APIService\XEngine_Source\XEngine_PluginModule\ModulePlugin_BMIndex\BMIndex_Error.h
5+
// File Path: H:\XEngine_APIService\XEngine_Source\XEngine_PluginModule\ModulePlugin_BMIndex
6+
// File Base: BMIndex_Error
7+
// File Ext: h
8+
// Project: XEngine(网络通信引擎)
9+
// Author: qyt
10+
// Purpose: BMI错误导出
11+
// History:
12+
*********************************************************************/
13+
//////////////////////////////////////////////////////////////////////////
14+
// 错误定义
15+
//////////////////////////////////////////////////////////////////////////
16+
#define ERROR_XENGINE_APISERVICE_PLUGIN_MODULE_BMINDEX_PARAMENT 0x14001 //参数错误
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
CC = g++ -Wall -std=c++17 -fPIC
2+
SHAREFLAG = -shared
3+
SHAREDLL = so
4+
RELEASE = 0
5+
UNICODE = 0
6+
INCLUDE = -I ./ -I ../../XEngine_ThirdPart/jsoncpp
7+
LOADBIN = -L /usr/local/lib/XEngine_Release/XEngine_BaseLib -L ../../XEngine_ThirdPart/jsoncpp
8+
LIB = -lXEngine_BaseLib -ljsoncpp
9+
LIBEX = -ldl -lpthread
10+
LOADSO = -Wl,-rpath=../,--disable-new-dtags
11+
LIBINCLUDE = Plugin_BMIndex.o pch.o
12+
13+
ifeq ($(shell uname),Darwin)
14+
SHAREDLL = dylib
15+
SHAREFLAG = -dynamiclib
16+
LOADSO =
17+
else
18+
SHAREDLL = so
19+
SHAREFLAG = -shared
20+
endif
21+
22+
ifeq ($(RELEASE),1)
23+
FLAGS = -c -O2
24+
DEBUG =
25+
else
26+
FLAGS = -c
27+
DEBUG = -g
28+
endif
29+
30+
ifeq ($(UNICODE),1)
31+
UNICODE = -D _UNICODE
32+
else
33+
UNICODE =
34+
endif
35+
36+
37+
all:$(LIBINCLUDE)
38+
$(CC) $(DEBUG) $(LIBINCLUDE) -o libModulePlugin_BMIndex.$(SHAREDLL) $(SHAREFLAG) -fPIC $(LOADBIN) $(LIB) $(LIBEX) $(LOADSO)
39+
40+
Plugin_BMIndex.o:./Plugin_BMIndex/Plugin_BMIndex.cpp
41+
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(INCLUDE) ./Plugin_BMIndex/Plugin_BMIndex.cpp
42+
43+
pch.o:./pch.cpp
44+
$(CC) $(DEBUG) $(FLAGS) $(UNICODE) $(INCLUDE) ./pch.cpp
45+
46+
47+
InstallAll:InstallSo
48+
InstallSo:./libModulePlugin_BMIndex.$(SHAREDLL)
49+
cp ./libModulePlugin_BMIndex.$(SHAREDLL) ../../../XEngine_Release/XEngine_Plugin/libModulePlugin_BMIndex.$(SHAREDLL)
50+
51+
CleanAll:CleanObj CleanMk
52+
CleanObj:
53+
rm *.o
54+
CleanMk:
55+
rm *.$(SHAREDLL)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
LIBRARY
2+
3+
EXPORTS
4+
PluginCore_GetLastError
5+
6+
PluginCore_Init
7+
PluginCore_UnInit
8+
PluginCore_Call
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<VCProjectVersion>16.0</VCProjectVersion>
23+
<Keyword>Win32Proj</Keyword>
24+
<ProjectGuid>{bbc4b2b4-1143-45df-8890-47ce26a61d0e}</ProjectGuid>
25+
<RootNamespace>ModulePluginBMIndex</RootNamespace>
26+
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
27+
</PropertyGroup>
28+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
29+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
30+
<ConfigurationType>DynamicLibrary</ConfigurationType>
31+
<UseDebugLibraries>true</UseDebugLibraries>
32+
<PlatformToolset>v143</PlatformToolset>
33+
<CharacterSet>MultiByte</CharacterSet>
34+
</PropertyGroup>
35+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
36+
<ConfigurationType>DynamicLibrary</ConfigurationType>
37+
<UseDebugLibraries>false</UseDebugLibraries>
38+
<PlatformToolset>v143</PlatformToolset>
39+
<WholeProgramOptimization>true</WholeProgramOptimization>
40+
<CharacterSet>Unicode</CharacterSet>
41+
</PropertyGroup>
42+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
43+
<ConfigurationType>DynamicLibrary</ConfigurationType>
44+
<UseDebugLibraries>true</UseDebugLibraries>
45+
<PlatformToolset>v143</PlatformToolset>
46+
<CharacterSet>Unicode</CharacterSet>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
49+
<ConfigurationType>DynamicLibrary</ConfigurationType>
50+
<UseDebugLibraries>false</UseDebugLibraries>
51+
<PlatformToolset>v143</PlatformToolset>
52+
<WholeProgramOptimization>true</WholeProgramOptimization>
53+
<CharacterSet>Unicode</CharacterSet>
54+
</PropertyGroup>
55+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
56+
<ImportGroup Label="ExtensionSettings">
57+
</ImportGroup>
58+
<ImportGroup Label="Shared">
59+
</ImportGroup>
60+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
61+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
62+
</ImportGroup>
63+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
64+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65+
</ImportGroup>
66+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68+
</ImportGroup>
69+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
70+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
71+
</ImportGroup>
72+
<PropertyGroup Label="UserMacros" />
73+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74+
<OutDir>$(SolutionDir)$(Configuration)\XEngine_Plugin\</OutDir>
75+
<IncludePath>../../XEngine_ThirdPart/jsoncpp;$(XEngine_Include);$(IncludePath)</IncludePath>
76+
<LibraryPath>$(XEngine_Lib32);$(LibraryPath)</LibraryPath>
77+
</PropertyGroup>
78+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
79+
<ClCompile>
80+
<WarningLevel>Level3</WarningLevel>
81+
<SDLCheck>true</SDLCheck>
82+
<PreprocessorDefinitions>WIN32;_DEBUG;MODULEPLUGINBMINDEX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
83+
<ConformanceMode>true</ConformanceMode>
84+
<PrecompiledHeader>Use</PrecompiledHeader>
85+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
86+
</ClCompile>
87+
<Link>
88+
<SubSystem>Windows</SubSystem>
89+
<GenerateDebugInformation>true</GenerateDebugInformation>
90+
<EnableUAC>false</EnableUAC>
91+
<ModuleDefinitionFile>ModulePlugin_BMIndex.def</ModuleDefinitionFile>
92+
</Link>
93+
</ItemDefinitionGroup>
94+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
95+
<ClCompile>
96+
<WarningLevel>Level3</WarningLevel>
97+
<FunctionLevelLinking>true</FunctionLevelLinking>
98+
<IntrinsicFunctions>true</IntrinsicFunctions>
99+
<SDLCheck>true</SDLCheck>
100+
<PreprocessorDefinitions>WIN32;NDEBUG;MODULEPLUGINBMINDEX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
101+
<ConformanceMode>true</ConformanceMode>
102+
<PrecompiledHeader>Use</PrecompiledHeader>
103+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
104+
</ClCompile>
105+
<Link>
106+
<SubSystem>Windows</SubSystem>
107+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
108+
<OptimizeReferences>true</OptimizeReferences>
109+
<GenerateDebugInformation>true</GenerateDebugInformation>
110+
<EnableUAC>false</EnableUAC>
111+
<ModuleDefinitionFile>ModulePlugin_BMIndex.def</ModuleDefinitionFile>
112+
</Link>
113+
</ItemDefinitionGroup>
114+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
115+
<ClCompile>
116+
<WarningLevel>Level3</WarningLevel>
117+
<SDLCheck>true</SDLCheck>
118+
<PreprocessorDefinitions>_DEBUG;MODULEPLUGINBMINDEX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
119+
<ConformanceMode>true</ConformanceMode>
120+
<PrecompiledHeader>Use</PrecompiledHeader>
121+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
122+
</ClCompile>
123+
<Link>
124+
<SubSystem>Windows</SubSystem>
125+
<GenerateDebugInformation>true</GenerateDebugInformation>
126+
<EnableUAC>false</EnableUAC>
127+
<ModuleDefinitionFile>ModulePlugin_BMIndex.def</ModuleDefinitionFile>
128+
</Link>
129+
</ItemDefinitionGroup>
130+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
131+
<ClCompile>
132+
<WarningLevel>Level3</WarningLevel>
133+
<FunctionLevelLinking>true</FunctionLevelLinking>
134+
<IntrinsicFunctions>true</IntrinsicFunctions>
135+
<SDLCheck>true</SDLCheck>
136+
<PreprocessorDefinitions>NDEBUG;MODULEPLUGINBMINDEX_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
137+
<ConformanceMode>true</ConformanceMode>
138+
<PrecompiledHeader>Use</PrecompiledHeader>
139+
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
140+
</ClCompile>
141+
<Link>
142+
<SubSystem>Windows</SubSystem>
143+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
144+
<OptimizeReferences>true</OptimizeReferences>
145+
<GenerateDebugInformation>true</GenerateDebugInformation>
146+
<EnableUAC>false</EnableUAC>
147+
<ModuleDefinitionFile>ModulePlugin_BMIndex.def</ModuleDefinitionFile>
148+
</Link>
149+
</ItemDefinitionGroup>
150+
<ItemGroup>
151+
<ClInclude Include="BMIndex_Define.h" />
152+
<ClInclude Include="BMIndex_Error.h" />
153+
<ClInclude Include="framework.h" />
154+
<ClInclude Include="pch.h" />
155+
<ClInclude Include="Plugin_BMIndex\Plugin_BMIndex.h" />
156+
</ItemGroup>
157+
<ItemGroup>
158+
<ClCompile Include="dllmain.cpp" />
159+
<ClCompile Include="pch.cpp">
160+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
161+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
162+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
163+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
164+
</ClCompile>
165+
<ClCompile Include="Plugin_BMIndex\Plugin_BMIndex.cpp" />
166+
</ItemGroup>
167+
<ItemGroup>
168+
<None Include="ModulePlugin_BMIndex.def" />
169+
</ItemGroup>
170+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
171+
<ImportGroup Label="ExtensionTargets">
172+
</ImportGroup>
173+
</Project>
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Filter Include="源文件">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="头文件">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="资源文件">
13+
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
14+
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
15+
</Filter>
16+
<Filter Include="头文件\Plugin_BMIndex">
17+
<UniqueIdentifier>{df393b17-7b0b-4454-ad60-2f43a0449401}</UniqueIdentifier>
18+
</Filter>
19+
<Filter Include="源文件\Plugin_BMIndex">
20+
<UniqueIdentifier>{ef4df45c-5063-4625-b55b-aa7c907920b6}</UniqueIdentifier>
21+
</Filter>
22+
</ItemGroup>
23+
<ItemGroup>
24+
<ClInclude Include="framework.h">
25+
<Filter>头文件</Filter>
26+
</ClInclude>
27+
<ClInclude Include="pch.h">
28+
<Filter>头文件</Filter>
29+
</ClInclude>
30+
<ClInclude Include="Plugin_BMIndex\Plugin_BMIndex.h">
31+
<Filter>头文件\Plugin_BMIndex</Filter>
32+
</ClInclude>
33+
<ClInclude Include="BMIndex_Define.h">
34+
<Filter>头文件</Filter>
35+
</ClInclude>
36+
<ClInclude Include="BMIndex_Error.h">
37+
<Filter>头文件</Filter>
38+
</ClInclude>
39+
</ItemGroup>
40+
<ItemGroup>
41+
<ClCompile Include="dllmain.cpp">
42+
<Filter>源文件</Filter>
43+
</ClCompile>
44+
<ClCompile Include="pch.cpp">
45+
<Filter>源文件</Filter>
46+
</ClCompile>
47+
<ClCompile Include="Plugin_BMIndex\Plugin_BMIndex.cpp">
48+
<Filter>源文件\Plugin_BMIndex</Filter>
49+
</ClCompile>
50+
</ItemGroup>
51+
<ItemGroup>
52+
<None Include="ModulePlugin_BMIndex.def">
53+
<Filter>源文件</Filter>
54+
</None>
55+
</ItemGroup>
56+
</Project>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup />
4+
</Project>

0 commit comments

Comments
 (0)