[Dsmyth-checkins] MythTVReader/MythSource/libdvbpsi/vc++ .cvsignore,NONE,1.1 Logging.c,NONE,1.1 conf
Brought to you by:
tobbej
From: Torbjörn J. <to...@us...> - 2005-06-25 16:18:18
|
Update of /cvsroot/dsmyth/MythTVReader/MythSource/libdvbpsi/vc++ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2525/vc++ Added Files: .cvsignore Logging.c config.h inttypes.h libdvbpsi.vcproj Log Message: libdvbpsi --- NEW FILE: config.h --- /* vc++/config.h - manually adapted from include/config.h.in */ /* debug mode configuration */ /* #undef DEBUG */ /* Define to 1 if you have the <dlfcn.h> header file. */ /* #undef HAVE_DLFCN_H */ /* Define to 1 if you have the <inttypes.h> header file. */ #define HAVE_INTTYPES_H /* Define to 1 if you have the <memory.h> header file. */ #define HAVE_MEMORY_H 1 /* Define to 1 if you have the <stdint.h> header file. */ /* #undef HAVE_STDINT_H */ /* Define to 1 if you have the <stdlib.h> header file. */ #define HAVE_STDLIB_H 1 /* Define to 1 if you have the <strings.h> header file. */ /* #undef HAVE_STRINGS_H */ /* Define to 1 if you have the <string.h> header file. */ #define HAVE_STRING_H 1 /* Define to 1 if the system has the type `struct timeval'. */ /* #undef HAVE_STRUCT_TIMEVAL */ /* Define to 1 if you have the <sys/stat.h> header file. */ #define HAVE_SYS_STAT_H 1 /* Define to 1 if you have the <sys/timeb.h> header file. */ #define HAVE_SYS_TIMEB_H 1 /* Define to 1 if you have the <sys/time.h> header file. */ /* #undef HAVE_SYS_TIME_H */ /* Define to 1 if you have the <sys/types.h> header file. */ #define HAVE_SYS_TYPES_H 1 /* Name of package */ #define PACKAGE "libdvbpsi" /* Define to the address where bug reports for this package should be sent. */ #define PACKAGE_BUGREPORT "" /* Define to the full name of this package. */ #define PACKAGE_NAME "" /* Define to the full name and version of this package. */ #define PACKAGE_STRING "libdvbpsi" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "" /* Define to the version of this package. */ #define PACKAGE_VERSION "0.1.4" /* Define as the return type of signal handlers (`int' or `void'). */ #define RETSIGTYPE void /* The size of a `char', as computed by sizeof. */ #define SIZEOF_CHAR 1 /* The size of a `int', as computed by sizeof. */ #define SIZEOF_INT 4 /* The size of a `long', as computed by sizeof. */ #define SIZEOF_LONG 4 /* The size of a `short', as computed by sizeof. */ #define SIZEOF_SHORT 2 /* The size of a `void*', as computed by sizeof. */ #define SIZEOF_VOIDP 4 /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1 /* Version number of package */ #define VERSION "0.1.4" /* Define to 1 if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). */ /* #undef WORDS_BIGENDIAN */ /* Define to empty if `const' does not conform to ANSI C. */ /* #undef const */ /* Define as `__inline' if that's what the C compiler calls it, or to nothing if it is not supported. */ #define inline __inline /* Define as `__restrict' if that's what the C compiler calls it, or to nothing if it is not supported. */ #define restrict __restrict /* Define to `unsigned' if <sys/types.h> does not define. */ /* #undef size_t */ /* Stop expected compiler warnings from appearing */ //#pragma warning(disable: 4244 4305 4098) --- NEW FILE: .cvsignore --- libdvbpsi.plg libdvbpsi.ncb libdvbpsi.opt libdvbpsi.aps libdvbpsi.suo Debug Release --- NEW FILE: inttypes.h --- typedef signed char int8_t; typedef signed short int16_t; typedef signed int int32_t; typedef signed __int64 int64_t; typedef signed int intptr_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned __int64 uint64_t; typedef unsigned int uintptr_t; --- NEW FILE: libdvbpsi.vcproj --- <?xml version="1.0" encoding="Windows-1252"?> <VisualStudioProject ProjectType="Visual C++" Version="7.10" Name="libdvbpsi" ProjectGUID="{4E805F8C-4927-43D8-B6E4-C8F82AF670C3}" SccProjectName="" SccLocalPath=""> <Platforms> <Platform Name="Win32"/> </Platforms> <Configurations> <Configuration Name="Release|Win32" OutputDirectory=".\Release" IntermediateDirectory=".\Release" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="2" InlineFunctionExpansion="1" AdditionalIncludeDirectories="." PreprocessorDefinitions="WIN32;NDEBUG;_LIB" StringPooling="TRUE" RuntimeLibrary="2" EnableFunctionLevelLinking="TRUE" UsePrecompiledHeader="2" PrecompiledHeaderFile=".\Release/libdvbpsi.pch" AssemblerListingLocation=".\Release/" ObjectFile=".\Release/" ProgramDataBaseFileName=".\Release/" WarningLevel="3" SuppressStartupBanner="TRUE"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLibrarianTool" OutputFile=".\Release\libdvbpsi.lib" SuppressStartupBanner="TRUE"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="NDEBUG" Culture="2057"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> <Configuration Name="Debug|Win32" OutputDirectory=".\Debug" IntermediateDirectory=".\Debug" ConfigurationType="4" UseOfMFC="0" ATLMinimizesCRunTimeLibraryUsage="FALSE" CharacterSet="2"> <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories="." PreprocessorDefinitions="WIN32;_DEBUG;_LIB" BasicRuntimeChecks="3" RuntimeLibrary="3" UsePrecompiledHeader="2" PrecompiledHeaderFile=".\Debug/libdvbpsi.pch" AssemblerListingLocation=".\Debug/" ObjectFile=".\Debug/" ProgramDataBaseFileName=".\Debug/" WarningLevel="3" SuppressStartupBanner="TRUE" DebugInformationFormat="4"/> <Tool Name="VCCustomBuildTool"/> <Tool Name="VCLibrarianTool" OutputFile=".\Debug\libdvbpsi.lib" SuppressStartupBanner="TRUE"/> <Tool Name="VCMIDLTool"/> <Tool Name="VCPostBuildEventTool"/> <Tool Name="VCPreBuildEventTool"/> <Tool Name="VCPreLinkEventTool"/> <Tool Name="VCResourceCompilerTool" PreprocessorDefinitions="_DEBUG" Culture="2057"/> <Tool Name="VCWebServiceProxyGeneratorTool"/> <Tool Name="VCXMLDataGeneratorTool"/> <Tool Name="VCManagedWrapperGeneratorTool"/> <Tool Name="VCAuxiliaryManagedWrapperGeneratorTool"/> </Configuration> </Configurations> <References> </References> <Files> <Filter Name="Source Files" Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"> <File RelativePath="..\src\demux.c"> </File> <File RelativePath="..\src\descriptor.c"> </File> <File RelativePath="..\src\descriptors\dr_02.c"> </File> <File RelativePath="..\src\descriptors\dr_03.c"> </File> <File RelativePath="..\src\descriptors\dr_04.c"> </File> <File RelativePath="..\src\descriptors\dr_05.c"> </File> <File RelativePath="..\src\descriptors\dr_06.c"> </File> <File RelativePath="..\src\descriptors\dr_07.c"> </File> <File RelativePath="..\src\descriptors\dr_08.c"> </File> <File RelativePath="..\src\descriptors\dr_09.c"> </File> <File RelativePath="..\src\descriptors\dr_0a.c"> </File> <File RelativePath="..\src\descriptors\dr_0b.c"> </File> <File RelativePath="..\src\descriptors\dr_0c.c"> </File> <File RelativePath="..\src\descriptors\dr_0d.c"> </File> <File RelativePath="..\src\descriptors\dr_0e.c"> </File> <File RelativePath="..\src\descriptors\dr_0f.c"> </File> <File RelativePath="..\src\descriptors\dr_42.c"> </File> <File RelativePath="..\src\descriptors\dr_47.c"> </File> <File RelativePath="..\src\descriptors\dr_48.c"> </File> <File RelativePath="..\src\descriptors\dr_59.c"> </File> <File RelativePath="..\src\dvbpsi.c"> </File> <File RelativePath=".\Logging.c"> </File> <File RelativePath="..\src\tables\pat.c"> </File> <File RelativePath="..\src\tables\pmt.c"> </File> <File RelativePath="..\src\psi.c"> </File> <File RelativePath="..\src\tables\sdt.c"> </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl"> <File RelativePath=".\config.h"> </File> <File RelativePath="..\src\demux.h"> </File> <File RelativePath="..\src\descriptor.h"> </File> <File RelativePath="..\src\descriptors\dr.h"> </File> <File RelativePath="..\src\descriptors\dr_02.h"> </File> <File RelativePath="..\src\descriptors\dr_03.h"> </File> <File RelativePath="..\src\descriptors\dr_04.h"> </File> <File RelativePath="..\src\descriptors\dr_05.h"> </File> <File RelativePath="..\src\descriptors\dr_06.h"> </File> <File RelativePath="..\src\descriptors\dr_07.h"> </File> <File RelativePath="..\src\descriptors\dr_08.h"> </File> <File RelativePath="..\src\descriptors\dr_09.h"> </File> <File RelativePath="..\src\descriptors\dr_0a.h"> </File> <File RelativePath="..\src\descriptors\dr_0b.h"> </File> <File RelativePath="..\src\descriptors\dr_0c.h"> </File> <File RelativePath="..\src\descriptors\dr_0d.h"> </File> <File RelativePath="..\src\descriptors\dr_0e.h"> </File> <File RelativePath="..\src\descriptors\dr_0f.h"> </File> <File RelativePath="..\src\descriptors\dr_42.h"> </File> <File RelativePath="..\src\descriptors\dr_47.h"> </File> <File RelativePath="..\src\descriptors\dr_48.h"> </File> <File RelativePath="..\src\descriptors\dr_59.h"> </File> <File RelativePath="..\src\dvbpsi.h"> </File> <File RelativePath="..\src\dvbpsi_private.h"> </File> <File RelativePath=".\inttypes.h"> </File> <File RelativePath="..\src\tables\pat.h"> </File> <File RelativePath="..\src\tables\pat_private.h"> </File> <File RelativePath="..\src\tables\pmt.h"> </File> <File RelativePath="..\src\tables\pmt_private.h"> </File> <File RelativePath="..\src\psi.h"> </File> <File RelativePath="..\src\tables\sdt.h"> </File> <File RelativePath="..\src\tables\sdt_private.h"> </File> </Filter> </Files> <Globals> </Globals> </VisualStudioProject> --- NEW FILE: Logging.c --- #include "config.h" #include <string.h> #include <stdio.h> #include <windows.h> #if defined(HAVE_INTTYPES_H) #include <inttypes.h> #elif defined(HAVE_STDINT_H) #include <stdint.h> #endif #include "../src/dvbpsi.h" #include "../src/dvbpsi_private.h" void _win32_debug_log(const char* src, const char* szFormat, ...) { char szMessage[2048]; va_list Args; int result; va_start(Args, szFormat); result = _vsnprintf(szMessage,2048, szFormat, Args); va_end(Args); if(result == -1) { OutputDebugString("DebugString too long, truncated!!\n"); } OutputDebugString(szMessage); OutputDebugString("\n"); } void _win32_error_log(const char* src, const char* szFormat, ...) { char szMessage[2048]; va_list Args; int result; va_start(Args, szFormat); result = _vsnprintf(szMessage,2048, szFormat, Args); va_end(Args); if(result == -1) { OutputDebugString("DebugString too long, truncated!!\n"); } OutputDebugString(szMessage); OutputDebugString("\n"); } |