49 #define OPGP_LOG_FILENAME _T("C:\\TEMP\\GlobalPlatform.log")
51 #define OPGP_LOG_FILENAME _T("/tmp/GlobalPlatform.log")
55 #define OPGP_LOG_START(msg) OPGP_log_Start(msg, _T(__FILE__), __LINE__)
56 #define OPGP_LOG_MSG(...) OPGP_log_Msg(__VA_ARGS__)
57 #define OPGP_LOG_END(msg, status) OPGP_log_End(msg, _T(__FILE__), __LINE__, status)
58 #define OPGP_LOG_HEX(msg, buffer, bufferLength) OPGP_log_Hex(msg, buffer, bufferLength)
60 #define OPGP_LOG_START(msg)
61 #define OPGP_LOG_END(msg,rv)
62 #define OPGP_LOG_HEX(msg, buffer, bufferLength)
63 #define OPGP_LOG_MSG(...)
OPGP_API void OPGP_log_Start(OPGP_STRING func, OPGP_STRING file, int line)
Logs the start of a function.
Definition: debug.c:56
OPGP_API void OPGP_log_Hex(OPGP_STRING msg, PBYTE buffer, DWORD bufferLength)
Logs a buffer as hex string.
Definition: debug.c:66
OPGP_API void OPGP_log_End(OPGP_STRING func, OPGP_STRING file, int line, OPGP_ERROR_STATUS status)
Logs the end of a function and its return code.
Definition: debug.c:101
OPGP_API void OPGP_log_Msg(OPGP_STRING msg,...)
Logs something to a file or the syslog.
Definition: debug.c:117
unsigned char * PBYTE
A Microsoft/Muscle LPBYTE, pointer to unsigned char.
Definition: types.h:64
char * OPGP_STRING
A Microsoft/Muscle LPTSTR.
Definition: types.h:62
unsigned long DWORD
A Microsoft/Muscle DWORD definition.
Definition: types.h:68