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)
#endif
NTSTATUS FspNtStatusFromWin32(DWORD Error);
FSP_API NTSTATUS FspNtStatusFromWin32(DWORD Error);
FSP_API VOID FspDebugLog(const char *format, ...);
#endif

View File

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

View File

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

View File

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