+++ /dev/null
-========================================================================\r
- KONSOLENANWENDUNG: wintestclient-Projektübersicht\r
-========================================================================\r
-\r
-Diese wintestclient-Anwendung wurde vom Anwendungs-Assistenten \r
-für Sie erstellt.\r
-\r
-Die Datei enthält eine Zusammenfassung des Inhalts der Dateien,\r
-aus denen die wintestclient-Anwendung besteht.\r
-\r
-\r
-wintestclient.vcproj\r
- Dies ist die Hauptprojektdatei für VC++-Projekte, die mit dem Anwendungs-\r
- Assistenten generiert werden.\r
- Sie enthält Informationen zu der Version von Visual C++, mit der die Datei \r
- generiert wurde, sowie Informationen zu Plattformen, Konfigurationen und \r
- Projektfeatures, die mit dem dem Anwendungs-Assistenten generiert werden.\r
-\r
-wintestclient.cpp\r
- Dies ist die Hauptquelldatei der Anwendung.\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-Andere Standarddateien:\r
-\r
-StdAfx.h, StdAfx.cpp\r
- Mit diesen Dateien werden eine vorkompilierte Headerdatei (PCH)\r
- mit dem Namen wintestclient.pch sowie eine vorkompilierte \r
- Typendatei mit dem Namen StdAfx.obj erstellt.\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-Weitere Hinweise:\r
-\r
-Der Anwendungs-Assistent verwendet "TODO:"-Kommentare, um die Teile des \r
-Quellcodes anzugeben, die hinzugefügt oder bearbeitet werden müssen.\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
+++ /dev/null
-// stdafx.cpp : Quelldatei, die nur die Standard-Includes einbindet.\r
-// wintestclient.pch ist der vorkompilierte Header.\r
-// stdafx.obj enthält die vorkompilierten Typinformationen.\r
-\r
-#include "stdafx.h"\r
-\r
-// TODO: Auf zusätzliche Header verweisen, die in STDAFX.H\r
-// und nicht in dieser Datei erforderlich sind.\r
+++ /dev/null
-// stdafx.h : Includedatei für Standardsystem-Includedateien\r
-// oder häufig verwendete projektspezifische Includedateien,\r
-// die nur in unregelmäßigen Abständen geändert werden.\r
-//\r
-\r
-#pragma once\r
-\r
-#include "targetver.h"\r
-\r
-#include <stdio.h>\r
-#include <tchar.h>\r
-\r
-\r
-\r
-// TODO: Hier auf zusätzliche Header, die das Programm erfordert, verweisen.\r
+++ /dev/null
-#pragma once\r
-\r
-// Die folgenden Makros definieren die mindestens erforderliche Plattform. Die mindestens erforderliche Plattform\r
-// ist die früheste Windows-, Internet Explorer-Version usw., die über die erforderlichen Features zur Ausführung \r
-// Ihrer Anwendung verfügt. Die Makros aktivieren alle Funktionen, die auf den Plattformversionen bis \r
-// einschließlich der angegebenen Version verfügbar sind.\r
-\r
-// Ändern Sie folgende Definitionen für Plattformen, die älter als die unten angegebenen sind.\r
-// Unter MSDN finden Sie die neuesten Informationen über die entsprechenden Werte für die unterschiedlichen Plattformen.\r
-#ifndef _WIN32_WINNT // Gibt an, dass Windows Vista die mindestens erforderliche Plattform ist.\r
-#define _WIN32_WINNT 0x0600 // Ändern Sie den entsprechenden Wert, um auf andere Versionen von Windows abzuzielen.\r
-#endif\r
-\r
+++ /dev/null
-/*******************************************************************************
-** **
-** SRC-MODULE: wintestclient.cpp **
-** **
-** TARGET : Windows **
-** **
-** PROJECT : DLT **
-** **
-** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
-** Markus Klein **
-** **
-** PURPOSE : **
-** **
-** REMARKS : **
-** **
-** PLATFORM DEPENDANT [yes/no]: yes **
-** **
-** TO BE CHANGED BY USER [yes/no]: no **
-** **
-*******************************************************************************/
-
-/*******************************************************************************
-** Author Identity **
-********************************************************************************
-** **
-** Initials Name Company **
-** -------- ------------------------- ---------------------------------- **
-** aw Alexander Wenzel BMW **
-** mk Markus Klein Fraunhofer ESK **
-*******************************************************************************/
-\r
-#include "stdafx.h"\r
-#include "winclientlib.h"\r
-\r
-#include <string.h>\r
-\r
-static int counter=0;\r
-\r
-int My_message_Callback(DltMessage *message, void *data)\r
-{\r
- counter++;\r
-\r
- printf("Message received, %d\n", counter);\r
- return 0;\r
-}\r
-\r
-int _tmain(int argc, _TCHAR* argv[])\r
-{\r
- char text[] = "Hello from WinTestClient";\r
-\r
- printf("WinTestClient\n");\r
-\r
- Dlt_RegisterMessageCallback(My_message_Callback);\r
-\r
- Dlt_StartClient("192.168.56.101");\r
-\r
- Dlt_InjectCall("LOG","TEST",0xFFF,(uint8_t*)text,strlen(text)+1);\r
-\r
- getchar();\r
-\r
- Dlt_ExitClient();\r
-\r
- return 0;\r
-}\r
-\r
+++ /dev/null
-\r
-Microsoft Visual Studio Solution File, Format Version 10.00\r
-# Visual C++ Express 2008\r
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wintestclient", "wintestclient.vcproj", "{C9C90C2B-DD7F-4EAD-B240-E35860756736}"\r
- ProjectSection(ProjectDependencies) = postProject\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED} = {F3674DAE-F85A-428C-85FE-3529671DF6ED}\r
- EndProjectSection\r
-EndProject\r
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winclientlib", "..\..\winclientlib\winclientlib.vcproj", "{F3674DAE-F85A-428C-85FE-3529671DF6ED}"\r
-EndProject\r
-Global\r
- GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
- Debug|Win32 = Debug|Win32\r
- Release|Win32 = Release|Win32\r
- EndGlobalSection\r
- GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
- {C9C90C2B-DD7F-4EAD-B240-E35860756736}.Debug|Win32.ActiveCfg = Debug|Win32\r
- {C9C90C2B-DD7F-4EAD-B240-E35860756736}.Debug|Win32.Build.0 = Debug|Win32\r
- {C9C90C2B-DD7F-4EAD-B240-E35860756736}.Release|Win32.ActiveCfg = Release|Win32\r
- {C9C90C2B-DD7F-4EAD-B240-E35860756736}.Release|Win32.Build.0 = Release|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Debug|Win32.ActiveCfg = Debug|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Debug|Win32.Build.0 = Debug|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Release|Win32.ActiveCfg = Release|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Release|Win32.Build.0 = Release|Win32\r
- EndGlobalSection\r
- GlobalSection(SolutionProperties) = preSolution\r
- HideSolutionNode = FALSE\r
- EndGlobalSection\r
-EndGlobal\r
+++ /dev/null
-<?xml version="1.0" encoding="Windows-1252"?>\r
-<VisualStudioProject\r
- ProjectType="Visual C++"\r
- Version="9,00"\r
- Name="wintestclient"\r
- ProjectGUID="{C9C90C2B-DD7F-4EAD-B240-E35860756736}"\r
- RootNamespace="wintestclient"\r
- Keyword="Win32Proj"\r
- TargetFrameworkVersion="196613"\r
- >\r
- <Platforms>\r
- <Platform\r
- Name="Win32"\r
- />\r
- </Platforms>\r
- <ToolFiles>\r
- </ToolFiles>\r
- <Configurations>\r
- <Configuration\r
- Name="Debug|Win32"\r
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
- IntermediateDirectory="$(ConfigurationName)"\r
- ConfigurationType="1"\r
- CharacterSet="1"\r
- >\r
- <Tool\r
- Name="VCPreBuildEventTool"\r
- />\r
- <Tool\r
- Name="VCCustomBuildTool"\r
- />\r
- <Tool\r
- Name="VCXMLDataGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCWebServiceProxyGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCMIDLTool"\r
- />\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- Optimization="0"\r
- AdditionalIncludeDirectories="..\..\..\include\dlt;..\..\include;..\..\winclientlib"\r
- PreprocessorDefinitions="WIN32;__WIN32__;_DEBUG;_CONSOLE"\r
- MinimalRebuild="true"\r
- BasicRuntimeChecks="3"\r
- RuntimeLibrary="3"\r
- UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
- DebugInformationFormat="4"\r
- />\r
- <Tool\r
- Name="VCManagedResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCPreLinkEventTool"\r
- />\r
- <Tool\r
- Name="VCLinkerTool"\r
- AdditionalDependencies="winclientlib.lib"\r
- LinkIncremental="2"\r
- AdditionalLibraryDirectories=".\Debug"\r
- GenerateDebugInformation="true"\r
- SubSystem="1"\r
- TargetMachine="1"\r
- />\r
- <Tool\r
- Name="VCALinkTool"\r
- />\r
- <Tool\r
- Name="VCManifestTool"\r
- />\r
- <Tool\r
- Name="VCXDCMakeTool"\r
- />\r
- <Tool\r
- Name="VCBscMakeTool"\r
- />\r
- <Tool\r
- Name="VCFxCopTool"\r
- />\r
- <Tool\r
- Name="VCAppVerifierTool"\r
- />\r
- <Tool\r
- Name="VCPostBuildEventTool"\r
- />\r
- </Configuration>\r
- <Configuration\r
- Name="Release|Win32"\r
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
- IntermediateDirectory="$(ConfigurationName)"\r
- ConfigurationType="1"\r
- CharacterSet="1"\r
- WholeProgramOptimization="1"\r
- >\r
- <Tool\r
- Name="VCPreBuildEventTool"\r
- />\r
- <Tool\r
- Name="VCCustomBuildTool"\r
- />\r
- <Tool\r
- Name="VCXMLDataGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCWebServiceProxyGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCMIDLTool"\r
- />\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- Optimization="2"\r
- EnableIntrinsicFunctions="true"\r
- AdditionalIncludeDirectories="..\..\..\include\dlt;..\..\include;..\..\winclientlib"\r
- PreprocessorDefinitions="WIN32;__WIN32__;NDEBUG;_CONSOLE"\r
- RuntimeLibrary="2"\r
- EnableFunctionLevelLinking="true"\r
- UsePrecompiledHeader="0"\r
- WarningLevel="3"\r
- DebugInformationFormat="3"\r
- />\r
- <Tool\r
- Name="VCManagedResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCPreLinkEventTool"\r
- />\r
- <Tool\r
- Name="VCLinkerTool"\r
- LinkIncremental="1"\r
- GenerateDebugInformation="true"\r
- SubSystem="1"\r
- OptimizeReferences="2"\r
- EnableCOMDATFolding="2"\r
- TargetMachine="1"\r
- />\r
- <Tool\r
- Name="VCALinkTool"\r
- />\r
- <Tool\r
- Name="VCManifestTool"\r
- />\r
- <Tool\r
- Name="VCXDCMakeTool"\r
- />\r
- <Tool\r
- Name="VCBscMakeTool"\r
- />\r
- <Tool\r
- Name="VCFxCopTool"\r
- />\r
- <Tool\r
- Name="VCAppVerifierTool"\r
- />\r
- <Tool\r
- Name="VCPostBuildEventTool"\r
- />\r
- </Configuration>\r
- </Configurations>\r
- <References>\r
- </References>\r
- <Files>\r
- <Filter\r
- Name="Quelldateien"\r
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
- >\r
- <File\r
- RelativePath=".\stdafx.cpp"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\wintestclient.cpp"\r
- >\r
- </File>\r
- </Filter>\r
- <Filter\r
- Name="Headerdateien"\r
- Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
- >\r
- <File\r
- RelativePath=".\stdafx.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\targetver.h"\r
- >\r
- </File>\r
- </Filter>\r
- <Filter\r
- Name="Ressourcendateien"\r
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
- >\r
- </Filter>\r
- <File\r
- RelativePath=".\ReadMe.txt"\r
- >\r
- </File>\r
- </Files>\r
- <Globals>\r
- </Globals>\r
-</VisualStudioProject>\r
+++ /dev/null
-// stdafx.cpp : source file that includes just the standard includes\r
-// WwinClientLib.pch will be the pre-compiled header\r
-// stdafx.obj will contain the pre-compiled type information\r
-\r
-#include "stdafx.h"\r
-\r
-// TODO: reference any additional headers you need in STDAFX.H\r
-// and not in this file\r
+++ /dev/null
-// stdafx.h : include file for standard system include files,\r
-// or project specific include files that are used frequently, but\r
-// are changed infrequently\r
-//\r
-\r
-#pragma once\r
-\r
-// Modify the following defines if you have to target a platform prior to the ones specified below.\r
-// Refer to MSDN for the latest info on corresponding values for different platforms.\r
-#ifndef WINVER // Allow use of features specific to Windows XP or later.\r
-#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.\r
-#endif\r
-\r
-#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later. \r
-#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.\r
-#endif \r
-\r
-#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.\r
-#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.\r
-#endif\r
-\r
-#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.\r
-#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.\r
-#endif\r
-\r
-#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers\r
-// Windows Header Files:\r
-#include <windows.h>\r
-\r
-\r
-\r
-// TODO: reference additional headers your program requires here\r
+++ /dev/null
-/*******************************************************************************
-** **
-** SRC-MODULE: winclientLib.cpp **
-** **
-** TARGET : Windows **
-** **
-** PROJECT : DLT **
-** **
-** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
-** Markus Klein **
-** **
-** PURPOSE : **
-** **
-** REMARKS : **
-** **
-** PLATFORM DEPENDANT [yes/no]: yes **
-** **
-** TO BE CHANGED BY USER [yes/no]: no **
-** **
-*******************************************************************************/
-
-/*******************************************************************************
-** Author Identity **
-********************************************************************************
-** **
-** Initials Name Company **
-** -------- ------------------------- ---------------------------------- **
-** aw Alexander Wenzel BMW **
-** mk Markus Klein Fraunhofer ESK **
-*******************************************************************************/
-
-/*******************************************************************************
-** Revision Control History **
-*******************************************************************************/
-
-/*
- * $LastChangedRevision$
- * $LastChangedDate$
- * $LastChangedBy$
- */
-
-// Need to link with Ws2_32.lib, Mswsock.lib, and Advapi32.lib
-
-// Disable C4995 and C4996 Warnings
-#pragma warning(disable : 4995)
-#pragma warning(disable : 4996)
-
-#include "stdafx.h"
-
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <windows.h>
-#include <strsafe.h>
-#include <io.h>
-
-#include <string>
-#include <iostream>
-
-#include "winclientlib.h"
-#include "dlt_client.h"
-
-// Function prototypes
-DWORD WINAPI MyThreadFunction( LPVOID lpParam );
-void ErrorHandler(LPTSTR lpszFunction);
-
-// Variables
-static DWORD dwThreadId;
-static HANDLE hThread;
-static HANDLE hEvent;
-
-static DltClient windltclient;
-
-#ifdef _MANAGED
-#pragma managed(push, off)
-#endif
-
-BOOL APIENTRY DllMain( HMODULE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved
- )
-{
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- {
- break;
- }
- }
- return TRUE;
-}
-
-#ifdef _MANAGED
-#pragma managed(pop)
-#endif
-
-using namespace std;
-
-/*
-Some helper functions
-*/
-
-DWORD WINAPI MyThreadFunction( LPVOID lpParam )
-{
- // Enter Main Loop
- dlt_client_main_loop(&windltclient, NULL, 0);
-
- // Send event about thread termination
- SetEvent(hEvent);
-
- ExitThread(0);
-}
-
-void ErrorHandler(LPTSTR lpszFunction)
-{
- // Retrieve the system error message for the last-error code.
- LPVOID lpMsgBuf;
- LPVOID lpDisplayBuf;
-
- DWORD dw = GetLastError();
-
- FormatMessage(
- FORMAT_MESSAGE_ALLOCATE_BUFFER |
- FORMAT_MESSAGE_FROM_SYSTEM |
- FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- dw,
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- (LPTSTR) &lpMsgBuf,
- 0, NULL );
-
- // Display the error message.
- lpDisplayBuf = (LPVOID)LocalAlloc(LMEM_ZEROINIT,
- (lstrlen((LPCTSTR) lpMsgBuf) + lstrlen((LPCTSTR) lpszFunction) + 40) * sizeof(TCHAR));
- StringCchPrintf((LPTSTR)lpDisplayBuf,
- LocalSize(lpDisplayBuf) / sizeof(TCHAR),
- TEXT("%s failed with error %d: %s"),
- lpszFunction, dw, lpMsgBuf);
-
- MessageBox(NULL, (LPCTSTR) lpDisplayBuf, TEXT("Error"), MB_OK);
-
- // Free error-handling buffer allocations.
- LocalFree(lpMsgBuf);
- LocalFree(lpDisplayBuf);
-}
-
-/***
-The interface functions
-****/
-
-WWINCLIENTLIB_API void Dlt_RegisterMessageCallback(int (*registerd_callback) (DltMessage *message, void *data))
-{
- dlt_client_register_message_callback(registerd_callback);
-}
-
-WWINCLIENTLIB_API int Dlt_StartClient(char* server_address)
-{
- WSADATA wsaData;
- int iResult;
-
- if ((server_address==0) || (server_address[0]=='\0'))
- {
- return 0;
- }
-
- // Create event, used for thread termination
- hEvent = CreateEvent(NULL,FALSE,FALSE,(LPCWSTR)"Test");
-
- // Initialize Winsock
- iResult = WSAStartup(MAKEWORD(2,2), &wsaData);
- if (iResult)
- {
- printf("winclientlib: WSAStartup failed: %d\n", iResult);
- return -1;
- }
-
- /* Initialize DLT Client */
- if (dlt_client_init(&windltclient, 0)==-1)
- {
- ErrorHandler(TEXT("dlt_client_init()"));
-
- Dlt_ExitClient();
-
- return -1;
- }
-
- /* Setup parameters of DltClient */
- windltclient.sock = -1;
- windltclient.serial_mode = 0; /* TCP connection:
- In Windows (with Visual C++),
- only TCP connection is allowed! */
- windltclient.servIP = server_address; /* IP address */
-
-
- /* Connect to TCP socket */
- if (dlt_client_connect(&windltclient, 0)==-1)
- {
- ErrorHandler(TEXT("dlt_client_connect()"));
-
- Dlt_ExitClient();
-
- return -1;
- }
-
- // Create the thread to begin execution on its own.
- hThread = CreateThread(
- NULL, // default security attributes
- 0, // use default stack size
- MyThreadFunction, // thread function name
- 0,//(LPVOID)address, // argument to thread function
- 0, // use default creation flags
- &dwThreadId); // returns the thread identifier
-
- // Check the return value for success.
- // If CreateThread fails, terminate execution.
- // This will automatically clean up threads and memory.
- if (hThread==0)
- {
- ErrorHandler(TEXT("CreateThread()"));
-
- // Cleanup WSA
- WSACleanup();
-
- return -1;
- }
-
- return 0;
-}
-
-WWINCLIENTLIB_API int Dlt_InjectCall( char appID[4], char contID[4], uint32_t serviceID, uint8_t *buf, uint32_t buf_len )
-{
- return dlt_client_send_inject_msg(&windltclient, appID, contID, serviceID, buf, buf_len);
-}
-
-WWINCLIENTLIB_API int Dlt_ExitClient()
-{
- printf("winclientlib: exiting ...\n");
-
- // Terminate thread and close handles
- if (windltclient.sock!=-1)
- {
- if (windltclient.serial_mode==1)
- {
- close(windltclient.sock);
- }
- else
- {
- closesocket(windltclient.sock);
- }
- windltclient.sock = -1;
-
- WaitForSingleObject(hEvent,INFINITE);
- }
-
- CloseHandle(hEvent);
- CloseHandle(hThread);
-
- // Dlt Client Cleanup
- if (dlt_client_cleanup(&windltclient,0)==-1)
- {
- printf("winclientlib: closing error.\n");
- }
- else
- {
- printf("winclientlib: closed.\n");
- }
-
- // Cleanup WSA
- WSACleanup();
-
- exit(0);
-}
+++ /dev/null
-/*******************************************************************************
-** **
-** SRC-MODULE: winClientLib.h **
-** **
-** TARGET : Windows **
-** **
-** PROJECT : DLT **
-** **
-** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
-** Markus Klein **
-** **
-** PURPOSE : **
-** **
-** REMARKS : **
-** **
-** PLATFORM DEPENDANT [yes/no]: yes **
-** **
-** TO BE CHANGED BY USER [yes/no]: no **
-** **
-*******************************************************************************/
-
-/*******************************************************************************
-** Author Identity **
-********************************************************************************
-** **
-** Initials Name Company **
-** -------- ------------------------- ---------------------------------- **
-** aw Alexander Wenzel BMW **
-** mk Markus Klein Fraunhofer ESK **
-*******************************************************************************/
-
-/*******************************************************************************
-** Revision Control History **
-*******************************************************************************/
-
-/*
- * $LastChangedRevision$
- * $LastChangedDate$
- * $LastChangedBy$
- */
-
-#include "dlt_common.h" // for DltMessage
-
-// The following ifdef block is the standard way of creating macros which make exporting
-// from a DLL simpler. All files within this DLL are compiled with the WWINCLIENTLIB_EXPORTS
-// symbol defined on the command line. this symbol should not be defined on any project
-// that uses this DLL. This way any other project whose source files include this file see
-// WWINCLIENTLIB_API functions as being imported from a DLL, whereas this DLL sees symbols
-// defined with this macro as being exported.
-#ifdef WINCLIENTLIB_EXPORTS
-#define WWINCLIENTLIB_API __declspec(dllexport)
-#else
-#define WWINCLIENTLIB_API __declspec(dllimport)
-#endif
-
-WWINCLIENTLIB_API int Dlt_StartClient(char* server_address);
-WWINCLIENTLIB_API int Dlt_ExitClient();
-WWINCLIENTLIB_API int Dlt_InjectCall( char appID[4], char contID[4], uint32_t serviceID, uint8_t *buf, uint32_t buf_len );
-WWINCLIENTLIB_API void Dlt_RegisterMessageCallback(int (*registerd_callback) (DltMessage *message, void *data));
+++ /dev/null
-\r
-Microsoft Visual Studio Solution File, Format Version 10.00\r
-# Visual C++ Express 2008\r
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "winclientlib", "winclientlib.vcproj", "{F3674DAE-F85A-428C-85FE-3529671DF6ED}"\r
-EndProject\r
-Global\r
- GlobalSection(SolutionConfigurationPlatforms) = preSolution\r
- Debug|Win32 = Debug|Win32\r
- Release|Win32 = Release|Win32\r
- EndGlobalSection\r
- GlobalSection(ProjectConfigurationPlatforms) = postSolution\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Debug|Win32.ActiveCfg = Debug|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Debug|Win32.Build.0 = Debug|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Release|Win32.ActiveCfg = Release|Win32\r
- {F3674DAE-F85A-428C-85FE-3529671DF6ED}.Release|Win32.Build.0 = Release|Win32\r
- EndGlobalSection\r
- GlobalSection(SolutionProperties) = preSolution\r
- HideSolutionNode = FALSE\r
- EndGlobalSection\r
-EndGlobal\r
+++ /dev/null
-<?xml version="1.0" encoding="Windows-1252"?>\r
-<VisualStudioProject\r
- ProjectType="Visual C++"\r
- Version="9,00"\r
- Name="winclientlib"\r
- ProjectGUID="{F3674DAE-F85A-428C-85FE-3529671DF6ED}"\r
- RootNamespace="winclientlib"\r
- TargetFrameworkVersion="196613"\r
- >\r
- <Platforms>\r
- <Platform\r
- Name="Win32"\r
- />\r
- </Platforms>\r
- <ToolFiles>\r
- </ToolFiles>\r
- <Configurations>\r
- <Configuration\r
- Name="Debug|Win32"\r
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
- IntermediateDirectory="$(ConfigurationName)"\r
- ConfigurationType="2"\r
- CharacterSet="1"\r
- >\r
- <Tool\r
- Name="VCPreBuildEventTool"\r
- />\r
- <Tool\r
- Name="VCCustomBuildTool"\r
- />\r
- <Tool\r
- Name="VCXMLDataGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCWebServiceProxyGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCMIDLTool"\r
- />\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- Optimization="0"\r
- AdditionalIncludeDirectories="..\include;..\..\include\dlt;..\.."\r
- PreprocessorDefinitions="WINCLIENTLIB_EXPORTS;_CRT_SECURE_NO_WARNINGS;WIN32;__WIN32__;_DEBUG"\r
- MinimalRebuild="true"\r
- BasicRuntimeChecks="3"\r
- RuntimeLibrary="3"\r
- WarningLevel="3"\r
- DebugInformationFormat="4"\r
- />\r
- <Tool\r
- Name="VCManagedResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCPreLinkEventTool"\r
- />\r
- <Tool\r
- Name="VCLinkerTool"\r
- AdditionalDependencies="mswsock.lib Ws2_32.lib"\r
- GenerateDebugInformation="true"\r
- SubSystem="2"\r
- EntryPointSymbol="DllMain"\r
- TargetMachine="1"\r
- />\r
- <Tool\r
- Name="VCALinkTool"\r
- />\r
- <Tool\r
- Name="VCManifestTool"\r
- />\r
- <Tool\r
- Name="VCXDCMakeTool"\r
- />\r
- <Tool\r
- Name="VCBscMakeTool"\r
- />\r
- <Tool\r
- Name="VCFxCopTool"\r
- />\r
- <Tool\r
- Name="VCAppVerifierTool"\r
- />\r
- <Tool\r
- Name="VCPostBuildEventTool"\r
- />\r
- </Configuration>\r
- <Configuration\r
- Name="Release|Win32"\r
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
- IntermediateDirectory="$(ConfigurationName)"\r
- ConfigurationType="2"\r
- CharacterSet="1"\r
- WholeProgramOptimization="1"\r
- >\r
- <Tool\r
- Name="VCPreBuildEventTool"\r
- />\r
- <Tool\r
- Name="VCCustomBuildTool"\r
- />\r
- <Tool\r
- Name="VCXMLDataGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCWebServiceProxyGeneratorTool"\r
- />\r
- <Tool\r
- Name="VCMIDLTool"\r
- />\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- Optimization="2"\r
- EnableIntrinsicFunctions="true"\r
- AdditionalIncludeDirectories="..\include;..\..\include\dlt;..\.."\r
- PreprocessorDefinitions="WINCLIENTLIB_EXPORTS;_CRT_SECURE_NO_WARNINGS;WIN32;__WIN32__;NDEBUG"\r
- RuntimeLibrary="2"\r
- EnableFunctionLevelLinking="true"\r
- WarningLevel="3"\r
- DebugInformationFormat="3"\r
- />\r
- <Tool\r
- Name="VCManagedResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCResourceCompilerTool"\r
- />\r
- <Tool\r
- Name="VCPreLinkEventTool"\r
- />\r
- <Tool\r
- Name="VCLinkerTool"\r
- AdditionalDependencies="mswsock.lib Ws2_32.lib"\r
- GenerateDebugInformation="true"\r
- OptimizeReferences="2"\r
- EnableCOMDATFolding="2"\r
- TargetMachine="1"\r
- />\r
- <Tool\r
- Name="VCALinkTool"\r
- />\r
- <Tool\r
- Name="VCManifestTool"\r
- />\r
- <Tool\r
- Name="VCXDCMakeTool"\r
- />\r
- <Tool\r
- Name="VCBscMakeTool"\r
- />\r
- <Tool\r
- Name="VCFxCopTool"\r
- />\r
- <Tool\r
- Name="VCAppVerifierTool"\r
- />\r
- <Tool\r
- Name="VCPostBuildEventTool"\r
- />\r
- </Configuration>\r
- </Configurations>\r
- <References>\r
- </References>\r
- <Files>\r
- <Filter\r
- Name="Quelldateien"\r
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
- >\r
- <File\r
- RelativePath="..\lib\dlt_client.c"\r
- >\r
- <FileConfiguration\r
- Name="Debug|Win32"\r
- >\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- CompileAs="2"\r
- />\r
- </FileConfiguration>\r
- <FileConfiguration\r
- Name="Release|Win32"\r
- >\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- CompileAs="2"\r
- />\r
- </FileConfiguration>\r
- </File>\r
- <File\r
- RelativePath="..\lib\dlt_common.c"\r
- >\r
- <FileConfiguration\r
- Name="Debug|Win32"\r
- >\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- CompileAs="2"\r
- />\r
- </FileConfiguration>\r
- <FileConfiguration\r
- Name="Release|Win32"\r
- >\r
- <Tool\r
- Name="VCCLCompilerTool"\r
- CompileAs="2"\r
- />\r
- </FileConfiguration>\r
- </File>\r
- <File\r
- RelativePath=".\winclientlib.cpp"\r
- >\r
- </File>\r
- </Filter>\r
- <Filter\r
- Name="Headerdateien"\r
- Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
- >\r
- <File\r
- RelativePath="..\..\include\dlt\dlt_client.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath="..\include\dlt_common.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath="..\..\include\dlt\dlt_protocol.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath="..\..\include\dlt\msvc_stdint.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\stdafx.cpp"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\stdafx.h"\r
- >\r
- </File>\r
- <File\r
- RelativePath=".\winclientlib.h"\r
- >\r
- </File>\r
- </Filter>\r
- <Filter\r
- Name="Ressourcendateien"\r
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
- >\r
- </Filter>\r
- </Files>\r
- <Globals>\r
- </Globals>\r
-</VisualStudioProject>\r