#include <stdint.h>
#include <string.h>
-#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-namespace CEC {
+#if !defined(_WIN32) && !defined(_WIN64)
+#include <stdbool.h>
#endif
#if !defined(DECLSPEC)
#endif
#endif
+#ifdef __cplusplus
+extern "C" {
+namespace CEC {
+#endif
+
typedef enum
{
CEC_ABORT_REASON_UNRECOGNIZED_OPCODE = 0,
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
- <ClInclude Include="..\include\CECExports.h" />
- <ClInclude Include="..\include\CECExportsC.h" />
- <ClInclude Include="..\include\CECExportsCpp.h" />
- <ClInclude Include="..\include\CECTypes.h" />
+ <ClInclude Include="..\include\cec.h" />
+ <ClInclude Include="..\include\cecc.h" />
+ <ClInclude Include="..\include\cecloader.h" />
+ <ClInclude Include="..\include\cectypes.h" />
<ClInclude Include="..\src\lib\AdapterCommunication.h" />
<ClInclude Include="..\src\lib\AdapterDetection.h" />
<ClInclude Include="..\src\lib\CECProcessor.h" />
<WarningLevel>Level4</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T;_WINSOCKAPI_;__STDC_CONSTANT_MACROS;__WINDOWS__;DLL_EXPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions>
- <AdditionalIncludeDirectories>$(SolutionDir)..\src\lib\platform\pthread_win32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>$(SolutionDir)..\src\lib\platform\pthread_win32;$(SolutionDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<DisableSpecificWarnings>4996;4100;4309;4505</DisableSpecificWarnings>
<TreatWarningAsError>true</TreatWarningAsError>
</ClCompile>
<OutputFile>$(SolutionDir)..\libcec.dll</OutputFile>
<AdditionalDependencies>%(AdditionalDependencies);setupapi.lib;$(SolutionDir)..\src\lib\platform\pthread_win32\pthreadVC2.lib</AdditionalDependencies>
<IgnoreSpecificDefaultLibraries>libcmtd</IgnoreSpecificDefaultLibraries>
- <Version>6</Version>
+ <Version>7</Version>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClInclude Include="..\src\lib\util\StdString.h">
<Filter>util</Filter>
</ClInclude>
- <ClInclude Include="..\include\CECExports.h">
- <Filter>exports</Filter>
- </ClInclude>
- <ClInclude Include="..\include\CECExportsCpp.h">
- <Filter>exports</Filter>
- </ClInclude>
- <ClInclude Include="..\include\CECTypes.h">
- <Filter>exports</Filter>
- </ClInclude>
- <ClInclude Include="..\include\CECExportsC.h">
- <Filter>exports</Filter>
- </ClInclude>
<ClInclude Include="..\src\lib\AdapterCommunication.h" />
<ClInclude Include="..\src\lib\AdapterDetection.h" />
<ClInclude Include="..\src\lib\CECProcessor.h" />
<ClInclude Include="..\src\lib\platform\pthread_win32\semaphore.h">
<Filter>platform</Filter>
</ClInclude>
+ <ClInclude Include="..\include\cec.h">
+ <Filter>exports</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\cecc.h">
+ <Filter>exports</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\cecloader.h">
+ <Filter>exports</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\cectypes.h">
+ <Filter>exports</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\lib\AdapterCommunication.cpp" />
<PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T;_WINSOCKAPI_;__STDC_CONSTANT_MACROS;__WINDOWS__;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<TreatWarningAsError>true</TreatWarningAsError>
<DisableSpecificWarnings>4100;4309;4505</DisableSpecificWarnings>
+ <AdditionalIncludeDirectories>$(SolutiontDir)..\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalDependencies>$(ProjectDir)..\src\lib\platform\pthread_win32\pthreadVC2.lib;%(AdditionalDependencies)</AdditionalDependencies>
<OutputFile>$(SolutionDir)..\cec-client.exe</OutputFile>
+ <Version>7</Version>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
</Link>
</ItemDefinitionGroup>
<ItemGroup>
- <ClInclude Include="..\include\CECExports.h" />
- <ClInclude Include="..\include\CECExportsCpp.h" />
+ <ClInclude Include="..\include\cec.h" />
+ <ClInclude Include="..\include\cecloader.h" />
<ClInclude Include="..\src\lib\platform\os-dependent.h" />
<ClInclude Include="..\src\lib\platform\threads.h" />
<ClInclude Include="..\src\lib\platform\windows\os_windows.h" />
</Filter>
</ItemGroup>
<ItemGroup>
- <ClInclude Include="..\include\CECExports.h">
- <Filter>Header Files</Filter>
- </ClInclude>
- <ClInclude Include="..\include\CECExportsCpp.h">
- <Filter>Header Files</Filter>
- </ClInclude>
<ClInclude Include="..\src\lib\util\StdString.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\src\lib\platform\windows\os_windows.h">
<Filter>Header Files</Filter>
</ClInclude>
+ <ClInclude Include="..\include\cec.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ <ClInclude Include="..\include\cecloader.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\src\testclient\main.cpp">
* http://www.pulse-eight.net/
*/
+#include <windows.h>
+
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void*)
{
return 1;