Skip to content

Commit 6b6569e

Browse files
authored
Merge pull request #9 from CyberSource/future
Future
2 parents 61c85f4 + c5d06e4 commit 6b6569e

File tree

1,287 files changed

+1475527
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,287 files changed

+1475527
-0
lines changed

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language:
2+
c++
3+
4+
script:
5+
- make build64
6+
- make build32

BaseClient/BaseClient.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// BaseClient.cpp : Defines the exported functions for the DLL application.
2+
//
3+
4+
5+
6+

BaseClient/BaseClient.vcxproj

+210
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" 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="Debug|x64">
9+
<Configuration>Debug</Configuration>
10+
<Platform>x64</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Release|Win32">
13+
<Configuration>Release</Configuration>
14+
<Platform>Win32</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+
<ProjectGuid>{E5D6E166-C770-4B63-9501-4274E29D56E2}</ProjectGuid>
23+
<Keyword>Win32Proj</Keyword>
24+
<RootNamespace>BaseClient</RootNamespace>
25+
</PropertyGroup>
26+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28+
<ConfigurationType>DynamicLibrary</ConfigurationType>
29+
<UseDebugLibraries>true</UseDebugLibraries>
30+
<PlatformToolset>v110</PlatformToolset>
31+
<CharacterSet>Unicode</CharacterSet>
32+
</PropertyGroup>
33+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
34+
<ConfigurationType>DynamicLibrary</ConfigurationType>
35+
<UseDebugLibraries>true</UseDebugLibraries>
36+
<PlatformToolset>v110</PlatformToolset>
37+
<CharacterSet>Unicode</CharacterSet>
38+
</PropertyGroup>
39+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
40+
<ConfigurationType>DynamicLibrary</ConfigurationType>
41+
<UseDebugLibraries>false</UseDebugLibraries>
42+
<PlatformToolset>v110</PlatformToolset>
43+
<WholeProgramOptimization>true</WholeProgramOptimization>
44+
<CharacterSet>Unicode</CharacterSet>
45+
</PropertyGroup>
46+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
47+
<ConfigurationType>DynamicLibrary</ConfigurationType>
48+
<UseDebugLibraries>false</UseDebugLibraries>
49+
<PlatformToolset>v110</PlatformToolset>
50+
<WholeProgramOptimization>true</WholeProgramOptimization>
51+
<CharacterSet>Unicode</CharacterSet>
52+
</PropertyGroup>
53+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
54+
<ImportGroup Label="ExtensionSettings">
55+
</ImportGroup>
56+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
57+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
58+
</ImportGroup>
59+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
</ImportGroup>
62+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64+
</ImportGroup>
65+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
66+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67+
</ImportGroup>
68+
<PropertyGroup Label="UserMacros" />
69+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
70+
<LinkIncremental>true</LinkIncremental>
71+
<OutDir>.\Debug\win32\</OutDir>
72+
<IntDir>.\Debug\win32\</IntDir>
73+
</PropertyGroup>
74+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
75+
<LinkIncremental>true</LinkIncremental>
76+
<OutDir>.\Debug\win64\</OutDir>
77+
<IntDir>.\Debug\win64\</IntDir>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
80+
<OutDir>.\Release\win32\</OutDir>
81+
<IntDir>.\Release\win32\</IntDir>
82+
<LinkIncremental>false</LinkIncremental>
83+
</PropertyGroup>
84+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
85+
<LinkIncremental>false</LinkIncremental>
86+
<OutDir>.\Release\win64\</OutDir>
87+
<IntDir>.\Release\win64\</IntDir>
88+
</PropertyGroup>
89+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
90+
<ClCompile>
91+
<PrecompiledHeader>Use</PrecompiledHeader>
92+
<WarningLevel>Level3</WarningLevel>
93+
<Optimization>Disabled</Optimization>
94+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;BASECLIENT_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
95+
<SDLCheck>true</SDLCheck>
96+
</ClCompile>
97+
<Link>
98+
<SubSystem>Windows</SubSystem>
99+
<GenerateDebugInformation>true</GenerateDebugInformation>
100+
<OutputFile>Debug/win32/BaseClient.dll</OutputFile>
101+
<ImportLibrary>.\Debug\win32\BaseClient.lib</ImportLibrary>
102+
</Link>
103+
</ItemDefinitionGroup>
104+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
105+
<ClCompile>
106+
<PrecompiledHeader>Use</PrecompiledHeader>
107+
<WarningLevel>Level3</WarningLevel>
108+
<Optimization>Disabled</Optimization>
109+
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;BASECLIENT_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
110+
<SDLCheck>true</SDLCheck>
111+
</ClCompile>
112+
<Link>
113+
<SubSystem>Windows</SubSystem>
114+
<GenerateDebugInformation>true</GenerateDebugInformation>
115+
<OutputFile>Debug/win64/BaseClient.dll</OutputFile>
116+
<ImportLibrary>.\Debug\win64\BaseClient.lib</ImportLibrary>
117+
</Link>
118+
</ItemDefinitionGroup>
119+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
120+
<ClCompile>
121+
<WarningLevel>Level3</WarningLevel>
122+
<PrecompiledHeader>Use</PrecompiledHeader>
123+
<Optimization>MaxSpeed</Optimization>
124+
<FunctionLevelLinking>true</FunctionLevelLinking>
125+
<IntrinsicFunctions>true</IntrinsicFunctions>
126+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BASECLIENT_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
127+
<SDLCheck>true</SDLCheck>
128+
</ClCompile>
129+
<Link>
130+
<SubSystem>Windows</SubSystem>
131+
<GenerateDebugInformation>true</GenerateDebugInformation>
132+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
133+
<OutputFile>Release/win32/BaseClient.dll</OutputFile>
134+
<ImportLibrary>.\Release\win32\BaseClient.lib</ImportLibrary>
135+
<OptimizeReferences>true</OptimizeReferences>
136+
</Link>
137+
</ItemDefinitionGroup>
138+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
139+
<ClCompile>
140+
<WarningLevel>Level3</WarningLevel>
141+
<PrecompiledHeader>Use</PrecompiledHeader>
142+
<Optimization>MaxSpeed</Optimization>
143+
<FunctionLevelLinking>true</FunctionLevelLinking>
144+
<IntrinsicFunctions>true</IntrinsicFunctions>
145+
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;BASECLIENT_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
146+
<SDLCheck>true</SDLCheck>
147+
</ClCompile>
148+
<Link>
149+
<SubSystem>Windows</SubSystem>
150+
<GenerateDebugInformation>true</GenerateDebugInformation>
151+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
152+
<OutputFile>Release/win64/BaseClient.dll</OutputFile>
153+
<ImportLibrary>.\Release\win64\BaseClient.lib</ImportLibrary>
154+
<OptimizeReferences>true</OptimizeReferences>
155+
</Link>
156+
</ItemDefinitionGroup>
157+
<ItemGroup>
158+
<Text Include="ReadMe.txt" />
159+
</ItemGroup>
160+
<ItemGroup>
161+
<ClInclude Include="stdafx.h" />
162+
<ClInclude Include="targetver.h" />
163+
<ClInclude Include="util.h" />
164+
</ItemGroup>
165+
<ItemGroup>
166+
<ClCompile Include="dllmain.cpp">
167+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
168+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</CompileAsManaged>
169+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
170+
</PrecompiledHeader>
171+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
172+
</PrecompiledHeader>
173+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
174+
<CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</CompileAsManaged>
175+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
176+
</PrecompiledHeader>
177+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
178+
</PrecompiledHeader>
179+
</ClCompile>
180+
<ClCompile Include="kvs.c">
181+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
182+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
183+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsCpp</CompileAs>
184+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsCpp</CompileAs>
185+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
186+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
187+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">CompileAsCpp</CompileAs>
188+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">CompileAsCpp</CompileAs>
189+
</ClCompile>
190+
<ClCompile Include="stdafx.cpp">
191+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
192+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
193+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
194+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
195+
</ClCompile>
196+
<ClCompile Include="util.c">
197+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">NotUsing</PrecompiledHeader>
198+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">NotUsing</PrecompiledHeader>
199+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">CompileAsCpp</CompileAs>
200+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">CompileAsCpp</CompileAs>
201+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">NotUsing</PrecompiledHeader>
202+
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">NotUsing</PrecompiledHeader>
203+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">CompileAsCpp</CompileAs>
204+
<CompileAs Condition="'$(Configuration)|$(Platform)'=='Release|x64'">CompileAsCpp</CompileAs>
205+
</ClCompile>
206+
</ItemGroup>
207+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
208+
<ImportGroup Label="ExtensionTargets">
209+
</ImportGroup>
210+
</Project>

BaseClient/BaseClient.vcxproj.filters

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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="Source Files">
5+
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
6+
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
7+
</Filter>
8+
<Filter Include="Header Files">
9+
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
10+
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
11+
</Filter>
12+
<Filter Include="Resource Files">
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+
</ItemGroup>
17+
<ItemGroup>
18+
<Text Include="ReadMe.txt" />
19+
</ItemGroup>
20+
<ItemGroup>
21+
<ClInclude Include="stdafx.h">
22+
<Filter>Header Files</Filter>
23+
</ClInclude>
24+
<ClInclude Include="targetver.h">
25+
<Filter>Header Files</Filter>
26+
</ClInclude>
27+
<ClInclude Include="util.h">
28+
<Filter>Header Files</Filter>
29+
</ClInclude>
30+
</ItemGroup>
31+
<ItemGroup>
32+
<ClCompile Include="stdafx.cpp">
33+
<Filter>Source Files</Filter>
34+
</ClCompile>
35+
<ClCompile Include="BaseClient.cpp">
36+
<Filter>Source Files</Filter>
37+
</ClCompile>
38+
<ClCompile Include="dllmain.cpp">
39+
<Filter>Source Files</Filter>
40+
</ClCompile>
41+
<ClCompile Include="kvs.c">
42+
<Filter>Source Files</Filter>
43+
</ClCompile>
44+
<ClCompile Include="util.c">
45+
<Filter>Source Files</Filter>
46+
</ClCompile>
47+
</ItemGroup>
48+
</Project>

BaseClient/Makefile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
CC = g++
2+
#DEBUG = -g
3+
4+
CFLAGS = -fPIC
5+
source = kvs.c util.c
6+
OBJS = kvs.o util.o
7+
FPIC=-fPIC
8+
9+
dynamic : libbaseclient.so
10+
static : libbaseclient.a
11+
12+
.cpp.o:
13+
$(CC) -c $(CFLAGS) $(source)
14+
15+
libbaseclient.a : $(OBJS)
16+
rm -f $@
17+
ar cr $@ $(OBJS)
18+
19+
20+
libbaseclient.so : $(OBJS)
21+
rm -f $@
22+
$(CC) -shared -o $@ $(OBJS)
23+
24+
clean :
25+
rm -f *.o
26+
rm -f libbaseclient.a
27+
rm -f libbaseclient.so

BaseClient/ReadMe.txt

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
========================================================================
2+
DYNAMIC LINK LIBRARY : BaseClient Project Overview
3+
========================================================================
4+
5+
AppWizard has created this BaseClient DLL for you.
6+
7+
This file contains a summary of what you will find in each of the files that
8+
make up your BaseClient application.
9+
10+
11+
BaseClient.vcxproj
12+
This is the main project file for VC++ projects generated using an Application Wizard.
13+
It contains information about the version of Visual C++ that generated the file, and
14+
information about the platforms, configurations, and project features selected with the
15+
Application Wizard.
16+
17+
BaseClient.vcxproj.filters
18+
This is the filters file for VC++ projects generated using an Application Wizard.
19+
It contains information about the association between the files in your project
20+
and the filters. This association is used in the IDE to show grouping of files with
21+
similar extensions under a specific node (for e.g. ".cpp" files are associated with the
22+
"Source Files" filter).
23+
24+
BaseClient.cpp
25+
This is the main DLL source file.
26+
27+
When created, this DLL does not export any symbols. As a result, it
28+
will not produce a .lib file when it is built. If you wish this project
29+
to be a project dependency of some other project, you will either need to
30+
add code to export some symbols from the DLL so that an export library
31+
will be produced, or you can set the Ignore Input Library property to Yes
32+
on the General propert page of the Linker folder in the project's Property
33+
Pages dialog box.
34+
35+
/////////////////////////////////////////////////////////////////////////////
36+
Other standard files:
37+
38+
StdAfx.h, StdAfx.cpp
39+
These files are used to build a precompiled header (PCH) file
40+
named BaseClient.pch and a precompiled types file named StdAfx.obj.
41+
42+
/////////////////////////////////////////////////////////////////////////////
43+
Other notes:
44+
45+
AppWizard uses "TODO:" comments to indicate parts of the source code you
46+
should add to or customize.
47+
48+
/////////////////////////////////////////////////////////////////////////////

BaseClient/dllmain.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// dllmain.cpp : Defines the entry point for the DLL application.
2+
#include "stdafx.h"
3+
4+
BOOL APIENTRY DllMain( HMODULE hModule,
5+
DWORD ul_reason_for_call,
6+
LPVOID lpReserved
7+
)
8+
{
9+
switch (ul_reason_for_call)
10+
{
11+
case DLL_PROCESS_ATTACH:
12+
case DLL_THREAD_ATTACH:
13+
case DLL_THREAD_DETACH:
14+
case DLL_PROCESS_DETACH:
15+
break;
16+
}
17+
return TRUE;
18+
}
19+

0 commit comments

Comments
 (0)