1 #ifndef __MLPITRACELIB_H__ 2 #define __MLPITRACELIB_H__ 222 #define MLPI_TRACE_MODULE_NAME_SIZE (20) 223 #define MLPI_TRACE_BUFFER_NAME_SIZE (20) 224 #define MLPI_TRACE_FUNCTION_NAME_SIZE (30) 225 #define MLPI_TRACE_MESSAGE_SIZE (130) 227 #define MLPI_TRACE_MAX_MODULES (2000) 228 #define MLPI_TRACE_MAX_BUFFERS (16) 230 #define MLPI_TRACE_MAIN_BUFFER_NAME L"MAIN" 231 #define MLPI_TRACE_KIS_CMD_BUFFER_NAME L"KIS_CMD_LOGGER" 233 #define MLPI_TRACE_MODULE_USER L"MLPI_TRACE_USER" 252 #if !defined(TARGET_OS_VXWORKS) 273 BOOL8 toSeparateBuffer;
274 WCHAR16 moduleName[MLPI_TRACE_MODULE_NAME_SIZE];
275 WCHAR16 bufferName[MLPI_TRACE_BUFFER_NAME_SIZE];
290 WCHAR16 bufferName[MLPI_TRACE_BUFFER_NAME_SIZE];
291 LONG maximumBufferSize;
292 LONG actualBufferSize;
317 WCHAR16 text[MLPI_TRACE_MESSAGE_SIZE];
318 WCHAR16 moduleName[MLPI_TRACE_MODULE_NAME_SIZE];
319 WCHAR16 functionName[MLPI_TRACE_FUNCTION_NAME_SIZE];
322 #if !defined(TARGET_OS_VXWORKS) 338 #if defined(TARGET_OS_WINNT) 339 #if defined(MLPI_EXPORTS) 340 #define MLPI_API __declspec(dllexport) 341 #elif defined(MLPI_IMPORTS) 342 #define MLPI_API __declspec(dllimport) 347 #if defined(MLPI_EXPORTS) 348 #define MLPI_API __attribute__ ((visibility("default"))) 349 #elif defined(MLPI_IMPORTS) 790 #endif // endof: #ifndef __MLPITRACELIB_H__ long LONG
4 byte signed integer
long MLPIRESULT
common MLPI-API return value
MLPIRESULT mlpiTraceDeactivateAllModules(const MLPIHANDLE connection)
This function deactivates all available trace modules.
MLPIRESULT mlpiTraceGetModuleList(const MLPIHANDLE connection, MlpiTraceModuleInformation *moduleInfo, const ULONG numElements, ULONG *numElementsRet=0)
This function returns a list of all modules currently available in the tracing system. The module information also contains the name of each module. This name can be used with other calls to the tracing system.
MLPIRESULT mlpiTraceActivateAllModules(const MLPIHANDLE connection)
This function activates all available trace modules.
unsigned long long ULLONG
8 byte unsigned integer
signed char BOOL8
1 byte boolean
MLPIRESULT mlpiTraceGetNumberOfBuffers(const MLPIHANDLE connection, ULONG *numberOfBuffers)
This function returns the number of registered buffers.
MLPIRESULT mlpiTraceDeactivateModule(const MLPIHANDLE connection, const WCHAR16 *moduleName)
This function deactivates a trace module. Messages to a deactivated trace module are ignored by the t...
MLPIRESULT mlpiTraceClearAllBuffers(const MLPIHANDLE connection)
This function clears all buffers. This means that all trace messages currently available and stored i...
MLPIRESULT mlpiTraceError(const MLPIHANDLE connection, const WCHAR16 *text, const WCHAR16 *moduleName=0, const WCHAR16 *functionName=0, const LONG lineNumber=0)
This function traces an error.
struct MlpiTraceModuleInformation MlpiTraceModuleInformation
This structure defines the information about a trace module as used by mlpiTraceGetModuleList.
MLPIRESULT mlpiTraceGetBufferList(const MLPIHANDLE connection, MlpiTraceBufferInformation *bufferInfo, const ULONG numElements, ULONG *numElementsRet=0)
This function returns a list of all buffers currently available in the tracing system. The buffer information also contains the name of each buffer. This name can be used with other calls to the tracing system.
wchar_t WCHAR16
UTF16 string.
MLPIRESULT mlpiTraceGetOldestMessageIndex(const MLPIHANDLE connection, const WCHAR16 *bufferName, ULLONG *oldestIndex)
This function returns the message index of the oldest message available in the given trace buffer...
MLPIRESULT mlpiTraceActivateModule(const MLPIHANDLE connection, const WCHAR16 *moduleName)
This function activates a trace module. Trace messages to modules which are not activated will not be...
MLPIRESULT mlpiTraceGetNewestMessageIndex(const MLPIHANDLE connection, const WCHAR16 *bufferName, ULLONG *newestIndex)
This function returns the message index of the newest message available in the given trace buffer...
MLPIRESULT mlpiTraceEvent(const MLPIHANDLE connection, const WCHAR16 *text, const WCHAR16 *moduleName=0, const WCHAR16 *functionName=0, const LONG lineNumber=0)
This function traces an event.
MLPIRESULT mlpiTraceWarning(const MLPIHANDLE connection, const WCHAR16 *text, const WCHAR16 *moduleName=0, const WCHAR16 *functionName=0, const LONG lineNumber=0)
This function traces a warning.
MLPIRESULT mlpiTraceGetNumberOfModules(const MLPIHANDLE connection, ULONG *numberOfModules)
This function returns the number of registered modules.
MlpiTraceType
This enumeration defines the different types of entries that can be found in a trace buffer...
struct MlpiTraceBufferInformation MlpiTraceBufferInformation
This structure defines the information about a trace buffer as used by mlpiTraceGetBufferList.
MLPIRESULT mlpiTraceReadBuffer(const MLPIHANDLE connection, const WCHAR16 *bufferName, const ULLONG startIndex, MlpiTraceMessage *messages, const ULONG numElements, ULONG *numElementsRet=0)
This functions returns the messages of a given buffer.
unsigned long ULONG
4 byte unsigned integer
MLPIRESULT mlpiTraceMessage(const MLPIHANDLE connection, const WCHAR16 *text, const WCHAR16 *moduleName=0, const WCHAR16 *functionName=0, const LONG lineNumber=0)
This function traces a message.
unsigned long MLPIHANDLE
common MLPI-API handle value
struct MlpiTraceMessage MlpiTraceMessage
This structure defines the information about a trace buffer as used by mlpiTraceReadBuffer.
Unspecified message type.