dll: expose FspNtStatusFromWin32 and FspDebugLog

This commit is contained in:
Bill Zissimopoulos 2015-12-01 23:08:41 -08:00
parent 1312754016
commit 5a90bf52ed
4 changed files with 4 additions and 10 deletions

View File

@ -19,6 +19,7 @@
#define FSP_API __declspec(dllimport) #define FSP_API __declspec(dllimport)
#endif #endif
NTSTATUS FspNtStatusFromWin32(DWORD Error); FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error);
FSP_API VOID FspDebugLog(const char *format, ...);
#endif #endif

View File

@ -7,8 +7,7 @@
#include <dll/library.h> #include <dll/library.h>
#include <stdarg.h> #include <stdarg.h>
#if !defined(NDEBUG) FSP_API VOID FspDebugLog(const char *format, ...)
VOID FspDebugLog(const char *format, ...)
{ {
char buf[512]; char buf[512];
va_list ap; va_list ap;
@ -17,4 +16,3 @@ VOID FspDebugLog(const char *format, ...)
va_end(ap); va_end(ap);
OutputDebugStringA(buf); OutputDebugStringA(buf);
} }
#endif

View File

@ -22,9 +22,4 @@
#define DEBUGLOG(fmt, ...) ((void)0) #define DEBUGLOG(fmt, ...) ((void)0)
#endif #endif
/* debug */
#if !defined(NDEBUG)
VOID FspDebugLog(const char *format, ...);
#endif
#endif #endif

View File

@ -6,7 +6,7 @@
#include <dll/library.h> #include <dll/library.h>
NTSTATUS FspNtStatusFromWin32(DWORD Error) FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error)
{ {
switch (Error) switch (Error)
{ {