XnLog.h
Go to the documentation of this file.
/****************************************************************************
* *
* OpenNI 1.x Alpha *
* Copyright (C) 2011 PrimeSense Ltd. *
* *
* This file is part of OpenNI. *
* *
* OpenNI is free software: you can redistribute it and/or modify *
* it under the terms of the GNU Lesser General Public License as published *
* by the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* OpenNI is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. *
* *
* You should have received a copy of the GNU Lesser General Public License *
* along with OpenNI. If not, see <http://www.gnu.org/licenses/>. *
* *
****************************************************************************/
#ifndef _XN_LOG_H_
#define _XN_LOG_H_
//---------------------------------------------------------------------------
// Includes
//---------------------------------------------------------------------------
#include "XnOS.h"
#include "XnLogTypes.h"
#include "XnDump.h"
//---------------------------------------------------------------------------
// Exported Function Declaration
//---------------------------------------------------------------------------
XN_C_API XnStatus XN_C_DECL xnLogInitSystem();
XN_C_API XnStatus XN_C_DECL xnLogInitFromINIFile(const XnChar* csINIFile, const XnChar* csSectionName);
XN_C_API XnStatus XN_C_DECL xnLogInitFromXmlFile(const XnChar* strFileName);
XN_C_API XnStatus XN_C_DECL xnLogClose();
// @}
XN_C_API XnStatus XN_C_DECL xnLogSetMaskMinSeverity(const XnChar* strMask, XnLogSeverity minSeverity);
XN_C_API XnLogSeverity XN_C_DECL xnLogGetMaskMinSeverity(const XnChar* strMask);
// @}
XN_C_API XnStatus XN_C_DECL xnLogRegisterLogWriter(XnLogWriter* pWriter);
XN_C_API void XN_C_DECL xnLogUnregisterLogWriter(XnLogWriter* pWriter);
XN_C_API XnStatus XN_C_DECL xnLogSetConsoleOutput(XnBool bConsoleOutput);
XN_C_API XnStatus XN_C_DECL xnLogSetFileOutput(XnBool bFileOutput);
// @}
XN_C_API XnStatus XN_C_DECL xnLogStartNewFile();
XN_C_API XnStatus XN_C_DECL xnLogSetLineInfo(XnBool bLineInfo);
XN_C_API XnStatus XN_C_DECL xnLogSetOutputFolder(const XnChar* strOutputFolder);
XN_C_API XnStatus XN_C_DECL xnLogGetFileName(XnChar* strFileName, XnUInt32 nBufferSize);
// @}
XN_C_API XnLogger* XN_C_DECL xnLoggerOpen(const XnChar* strMask);
XN_C_API void XN_C_DECL xnLoggerWrite(XnLogger* pLogger, XnLogSeverity severity, const XnChar* strFile, XnUInt32 nLine, const XnChar* strFormat, ...);
XN_C_API void XN_C_DECL xnLoggerWriteNoEntry(XnLogger* pLogger, XnLogSeverity severity, const XnChar* strFormat, ...);
XN_C_API void XN_C_DECL xnLoggerWriteBinaryData(XnLogger* pLogger, XnLogSeverity severity, const XnChar* strFile, XnUInt32 nLine, XnUChar* pBinData, XnUInt32 nDataSize, const XnChar* strFormat, ...);
XN_C_API XnBool XN_C_DECL xnLoggerIsEnabled(XnLogger* pLogger, XnLogSeverity severity);
XN_C_API void XN_C_DECL _xnLoggerClose(XnLogger* pLogger);
#define xnLoggerClose(pLogger) \
{ \
_xnLoggerClose(pLogger); \
pLogger = NULL; \
}
#if XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_WIN32_VAARGS_STYLE
#define xnLoggerWriteHelper(pLogger, severity, csFormat, ...) \
if (pLogger != NULL && severity >= pLogger->nMinSeverity) \
{ \
xnLoggerWrite(pLogger, severity, __FILE__, __LINE__, csFormat, __VA_ARGS__); \
}
#define xnLoggerVerbose(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_VERBOSE, csFormat, __VA_ARGS__)
#define xnLoggerInfo(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_INFO, csFormat, __VA_ARGS__)
#define xnLoggerWarning(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_WARNING, csFormat, __VA_ARGS__)
#define xnLoggerError(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_ERROR, csFormat, __VA_ARGS__)
#define XN_RETURN_WITH_LOG(pLogger, nRetVal, severity, csFormat, ...) \
{ \
xnLoggerWriteHelper(pLogger, severity, csFormat, __VA_ARGS__); \
return (nRetVal); \
}
#define XN_RETURN_WITH_WARNING_LOG(pLogger, nRetVal, csFormat, ...) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_WARNING, csFormat, __VA_ARGS__)
#define XN_RETURN_WITH_ERROR_LOG(pLogger, nRetVal, csFormat, ...) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_ERROR, csFormat, __VA_ARGS__)
#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_GCC_VAARGS_STYLE
#define xnLoggerWriteHelper(pLogger, severity, csFormat, ...) \
if (pLogger != NULL && severity >= pLogger->nMinSeverity) \
{ \
xnLoggerWrite(pLogger, severity, __FILE__, __LINE__, csFormat, ##__VA_ARGS__); \
}
#define xnLoggerVerbose(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_VERBOSE, csFormat,## __VA_ARGS__)
#define xnLoggerInfo(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_INFO, csFormat, ##__VA_ARGS__)
#define xnLoggerWarning(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_WARNING, csFormat, ##__VA_ARGS__)
#define xnLoggerError(pLogger, csFormat, ...) xnLoggerWriteHelper(pLogger, XN_LOG_ERROR, csFormat, ##__VA_ARGS__)
/* Writes to the log and returns nRetVal */
#define XN_RETURN_WITH_LOG(pLogger, nRetVal, severity, csFormat, ...) \
{ \
xnLoggerWriteHelper(pLogger, severity, csFormat, ##__VA_ARGS__); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_RETURN_WITH_WARNING_LOG(pLogger, nRetVal, csFormat, ...) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_WARNING, csFormat, ##__VA_ARGS__)
/* Logs an error and returns nRetVal */
#define XN_RETURN_WITH_ERROR_LOG(pLogger, nRetVal, csFormat, ...) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_ERROR, csFormat, ##__VA_ARGS__)
#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_ARC_VAARGS_STYLE
#define xnLoggerWriteHelper(pLogger, severity, csFormat...) \
if (pLogger != NULL && severity >= pLogger->nMinSeverity) \
{ \
xnLoggerWrite(pLogger, severity, __FILE__, __LINE__, csFormat); \
}
#define xnLoggerVerbose(pLogger, csFormat...) xnLoggerWriteHelper(pLogger, XN_LOG_VERBOSE, csFormat)
#define xnLoggerInfo(pLogger, csFormat...) xnLoggerWriteHelper(pLogger, XN_LOG_INFO, csFormat)
#define xnLoggerWarning(pLogger, csFormat...) xnLoggerWriteHelper(pLogger, XN_LOG_WARNING, csFormat)
#define xnLoggerError(pLogger, csFormat...) xnLoggerWriteHelper(pLogger, XN_LOG_ERROR, csFormat)
/* Writes to the log and returns nRetVal */
#define XN_RETURN_WITH_LOG(pLogger, nRetVal, severity, csFormat...) \
{ \
xnLoggerWriteHelper(pLogger, severity, csFormat); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_RETURN_WITH_WARNING_LOG(pLogger, nRetVal, csFormat...) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_WARNING, csFormat)
/* Logs an error and returns nRetVal */
#define XN_RETURN_WITH_ERROR_LOG(pLogger, nRetVal, csFormat...) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_ERROR, csFormat)
#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_NO_VAARGS
#define xnLoggerWriteHelper(pLogger, severity, csFormat, arg) \
if (pLogger != NULL && severity >= pLogger->nMinSeverity) \
{ \
xnLoggerWrite(pLogger, severity, __FILE__, __LINE__, csFormat, arg); \
}
#define xnLoggerVerbose(pLogger, csFormat, arg) xnLoggerWriteHelper(pLogger, XN_LOG_VERBOSE, csFormat, arg)
#define xnLoggerInfo(pLogger, csFormat, arg) xnLoggerWriteHelper(pLogger, XN_LOG_INFO, csFormat, arg)
#define xnLoggerWarning(pLogger, csFormat, arg) xnLoggerWriteHelper(pLogger, XN_LOG_WARNING, csFormat, arg)
#define xnLoggerError(pLogger, csFormat, arg) xnLoggerWriteHelper(pLogger, XN_LOG_ERROR, csFormat, arg)
/* Writes to the log and returns nRetVal */
#define XN_RETURN_WITH_LOG(pLogger, nRetVal, severity, csFormat) \
{ \
xnLoggerWriteHelper(pLogger, severity, csFormat); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_RETURN_WITH_WARNING_LOG(pLogger, nRetVal, csFormat) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_WARNING, csFormat)
/* Logs an error and returns nRetVal */
#define XN_RETURN_WITH_ERROR_LOG(pLogger, nRetVal, csFormat) \
XN_RETURN_WITH_LOG(pLogger, nRetVal, XN_LOG_ERROR, csFormat)
#else
#error Xiron Log - Unknown VAARGS type!
#endif
// @}
XN_C_API XnStatus XN_C_DECL xnLogCreateNewFile(const XnChar* strName, XnBool bSessionBased, XnChar* csFullPath, XnUInt32 nPathBufferSize, XN_FILE_HANDLE* phFile);
// @}
#define XN_MASK_RETVAL_CHECKS "RetValChecks"
#if XN_PLATFORM == XN_PLATFORM_ARC
extern "C" XnLogger* XN_LOGGER_RETVAL_CHECKS;
#else
XN_C_API XnLogger* XN_LOGGER_RETVAL_CHECKS;
#endif
#define XN_IS_STATUS_OK_LOG_ERROR(what, nRetVal) \
if (nRetVal != XN_STATUS_OK) \
{ \
xnLoggerError(XN_LOGGER_RETVAL_CHECKS, "Failed to " what ": %s", xnGetStatusString(nRetVal)); \
XN_ASSERT(FALSE); \
return (nRetVal); \
}
#ifndef __XN_NO_BC__
XN_C_API XnStatus XN_API_DEPRECATED("Please use xnLogSetMaskMinSeverity() instead") XN_C_DECL xnLogSetMaskState(const XnChar* csMask, XnBool bEnabled);
XN_C_API XnStatus XN_API_DEPRECATED("Please use xnLogSetMaskMinSeverity() instead") XN_C_DECL xnLogSetSeverityFilter(XnLogSeverity nMinSeverity);
XN_C_API XnBool XN_C_DECL xnLogIsEnabled(const XnChar* csLogMask, XnLogSeverity nSeverity);
XN_C_API void XN_C_DECL xnLogWrite(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, const XnChar* csFormat, ...);
XN_C_API void XN_C_DECL xnLogWriteNoEntry(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFormat, ...);
XN_C_API void XN_C_DECL xnLogWriteBinaryData(const XnChar* csLogMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, XnUChar* pBinData, XnUInt32 nDataSize, const XnChar* csFormat, ...);
XN_C_API XnStatus XN_API_DEPRECATED("Use xnLogCreateNewFile() instead") XN_C_DECL xnLogCreateFile(const XnChar* strFileName, XN_FILE_HANDLE* phFile);
XN_C_API XnStatus XN_API_DEPRECATED("Use xnLogCreateNewFile() instead") XN_C_DECL xnLogCreateFileEx(const XnChar* strFileName, XnBool bSessionBased, XN_FILE_HANDLE* phFile);
#if XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_WIN32_VAARGS_STYLE
#define xnLogVerbose(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_VERBOSE, __FILE__, __LINE__, csFormat, __VA_ARGS__)
#define xnLogInfo(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_INFO, __FILE__, __LINE__, csFormat, __VA_ARGS__)
#define xnLogWarning(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_WARNING, __FILE__, __LINE__, csFormat, __VA_ARGS__)
#define xnLogError(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_ERROR, __FILE__, __LINE__, csFormat, __VA_ARGS__)
/* Writes to the log and returns nRetVal */
#define XN_LOG_RETURN(nRetVal, nSeverity, csLogMask, csFormat, ...) \
{ \
xnLogWrite(csLogMask, nSeverity, __FILE__, __LINE__, csFormat, __VA_ARGS__); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_LOG_WARNING_RETURN(nRetVal, csLogMask, csFormat, ...) \
XN_LOG_RETURN(nRetVal, XN_LOG_WARNING, csLogMask, csFormat, __VA_ARGS__)
/* Logs a warning and returns nRetVal */
#define XN_LOG_ERROR_RETURN(nRetVal, csLogMask, csFormat, ...) \
XN_LOG_RETURN(nRetVal, XN_LOG_ERROR, csLogMask, csFormat, __VA_ARGS__)
#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_GCC_VAARGS_STYLE
#define xnLogVerbose(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_VERBOSE, __FILE__, __LINE__, csFormat, ##__VA_ARGS__)
#define xnLogInfo(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_INFO, __FILE__, __LINE__, csFormat, ##__VA_ARGS__)
#define xnLogWarning(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_WARNING, __FILE__, __LINE__, csFormat, ##__VA_ARGS__)
#define xnLogError(csLogMask, csFormat, ...) xnLogWrite(csLogMask, XN_LOG_ERROR, __FILE__, __LINE__, csFormat, ##__VA_ARGS__)
/* Writes to the log and returns nRetVal */
#define XN_LOG_RETURN(nRetVal, nSeverity, csLogMask, csFormat, ...) \
{ \
xnLogWrite(csLogMask, nSeverity, __FILE__, __LINE__, csFormat, ##__VA_ARGS__); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_LOG_WARNING_RETURN(nRetVal, csLogMask, csFormat, ...) \
XN_LOG_RETURN(nRetVal, XN_LOG_WARNING, csLogMask, csFormat, ##__VA_ARGS__)
/* Logs a warning and returns nRetVal */
#define XN_LOG_ERROR_RETURN(nRetVal, csLogMask, csFormat, ...) \
XN_LOG_RETURN(nRetVal, XN_LOG_ERROR, csLogMask, csFormat, ##__VA_ARGS__)
#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_ARC_VAARGS_STYLE
#define xnLogVerbose(csLogMask, csFormat...) xnLogWrite(csLogMask, XN_LOG_VERBOSE, __FILE__, __LINE__, csFormat)
#define xnLogInfo(csLogMask, csFormat...) xnLogWrite(csLogMask, XN_LOG_INFO, __FILE__, __LINE__, csFormat)
#define xnLogWarning(csLogMask, csFormat...) xnLogWrite(csLogMask, XN_LOG_WARNING, __FILE__, __LINE__, csFormat)
#define xnLogError(csLogMask, csFormat...) xnLogWrite(csLogMask, XN_LOG_ERROR, __FILE__, __LINE__, csFormat)
/* Writes to the log and returns nRetVal */
#define XN_LOG_RETURN(nRetVal, nSeverity, csLogMask, csFormat...) \
{ \
xnLogWrite(csLogMask, nSeverity, __FILE__, __LINE__, csFormat); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_LOG_WARNING_RETURN(nRetVal, csLogMask, csFormat...) \
XN_LOG_RETURN(nRetVal, XN_LOG_WARNING, csLogMask, csFormat)
/* Logs a warning and returns nRetVal */
#define XN_LOG_ERROR_RETURN(nRetVal, csLogMask, csFormat...) \
XN_LOG_RETURN(nRetVal, XN_LOG_ERROR, csLogMask, csFormat)
/* If nRetVal is not ok, writes to the log and returns nRetVal */
#define XN_IS_STATUS_OK_LOG(nRetVal, nSeverity, csLogMask, csFormat...) \
if (nRetVal != XN_STATUS_OK) \
{ \
XN_LOG_RETURN(nRetVal, nSeverity, csLogMask, csFormat) \
}
/* If nRetVal is not ok, logs a warning and returns nRetVal */
#define XN_IS_STATUS_OK_WARNING(nRetVal, csLogMask, csFormat...) \
XN_IS_STATUS_OK_LOG(nRetVal, XN_LOG_WARNING, csLogMask, csFormat)
/* If nRetVal is not ok, logs an error and returns nRetVal */
#define XN_IS_STATUS_OK_ERROR(nRetVal, csLogMask, csFormat...) \
XN_IS_STATUS_OK_LOG(nRetVal, XN_LOG_ERROR, csLogMask, csFormat)
#elif XN_PLATFORM_VAARGS_TYPE == XN_PLATFORM_USE_NO_VAARGS
#define xnLogVerbose(csLogMask, csFormat, args) xnLogWrite(csLogMask, XN_LOG_VERBOSE, __FILE__, __LINE__, csFormat, args)
#define xnLogInfo(csLogMask, csFormat, args) xnLogWrite(csLogMask, XN_LOG_INFO, __FILE__, __LINE__, csFormat, args)
#define xnLogWarning(csLogMask, csFormat, args) xnLogWrite(csLogMask, XN_LOG_WARNING, __FILE__, __LINE__, csFormat, args)
#define xnLogError(csLogMask, csFormat, args) xnLogWrite(csLogMask, XN_LOG_ERROR, __FILE__, __LINE__, csFormat, args)
/* Writes to the log and returns nRetVal */
#define XN_LOG_RETURN(nRetVal, nSeverity csLogMask, csFormat, args) \
{ \
xnLogWrite(csLogMask, nSeverity, __FILE__, __LINE__, csFormat, args); \
return (nRetVal); \
}
/* Logs a warning and returns nRetVal */
#define XN_LOG_WARNING_RETURN(nRetVal, csLogMask, csFormat, args) \
XN_LOG_RETURN(nRetVal, XN_LOG_WARNING, csLogMask, csFormat, args)
/* Logs an error and returns nRetVal */
#define XN_LOG_ERROR_RETURN(nRetVal, csLogMask, csFormat, args) \
XN_LOG_RETURN(nRetVal, XN_LOG_ERROR, csLogMask, csFormat, args)
#else
#error Xiron Log - Unknown VAARGS type!
#endif
#endif // ifndef __XN_NO_BC__
#endif //_XN_LOG_H_
XnDump.h
xnLogUnregisterLogWriter
XN_C_API void XN_C_DECL xnLogUnregisterLogWriter(XnLogWriter *pWriter)
xnLogSetConsoleOutput
XN_C_API XnStatus XN_C_DECL xnLogSetConsoleOutput(XnBool bConsoleOutput)
xnLogInitSystem
XN_C_API XnStatus XN_C_DECL xnLogInitSystem()
XN_LOGGER_RETVAL_CHECKS
XnLogger * XN_LOGGER_RETVAL_CHECKS
Definition XnLog.h:413
xnLogSetLineInfo
XN_C_API XnStatus XN_C_DECL xnLogSetLineInfo(XnBool bLineInfo)
xnLoggerWrite
XN_C_API void XN_C_DECL xnLoggerWrite(XnLogger *pLogger, XnLogSeverity severity, const XnChar *strFile, XnUInt32 nLine, const XnChar *strFormat,...)
xnLoggerWriteBinaryData
XN_C_API void XN_C_DECL xnLoggerWriteBinaryData(XnLogger *pLogger, XnLogSeverity severity, const XnChar *strFile, XnUInt32 nLine, XnUChar *pBinData, XnUInt32 nDataSize, const XnChar *strFormat,...)
xnLogStartNewFile
XN_C_API XnStatus XN_C_DECL xnLogStartNewFile()
xnLogGetFileName
XN_C_API XnStatus XN_C_DECL xnLogGetFileName(XnChar *strFileName, XnUInt32 nBufferSize)
xnLogCreateNewFile
XN_C_API XnStatus XN_C_DECL xnLogCreateNewFile(const XnChar *strName, XnBool bSessionBased, XnChar *csFullPath, XnUInt32 nPathBufferSize, XN_FILE_HANDLE *phFile)
xnLogClose
XN_C_API XnStatus XN_C_DECL xnLogClose()
xnLogSetFileOutput
XN_C_API XnStatus XN_C_DECL xnLogSetFileOutput(XnBool bFileOutput)
xnLogInitFromXmlFile
XN_C_API XnStatus XN_C_DECL xnLogInitFromXmlFile(const XnChar *strFileName)
xnLoggerIsEnabled
XN_C_API XnBool XN_C_DECL xnLoggerIsEnabled(XnLogger *pLogger, XnLogSeverity severity)
xnLogRegisterLogWriter
XN_C_API XnStatus XN_C_DECL xnLogRegisterLogWriter(XnLogWriter *pWriter)
xnLoggerOpen
XN_C_API XnLogger *XN_C_DECL xnLoggerOpen(const XnChar *strMask)
xnLogInitFromINIFile
XN_C_API XnStatus XN_C_DECL xnLogInitFromINIFile(const XnChar *csINIFile, const XnChar *csSectionName)
xnLogSetOutputFolder
XN_C_API XnStatus XN_C_DECL xnLogSetOutputFolder(const XnChar *strOutputFolder)
xnLogSetMaskMinSeverity
XN_C_API XnStatus XN_C_DECL xnLogSetMaskMinSeverity(const XnChar *strMask, XnLogSeverity minSeverity)
xnLogGetMaskMinSeverity
XN_C_API XnLogSeverity XN_C_DECL xnLogGetMaskMinSeverity(const XnChar *strMask)
xnLoggerWriteNoEntry
XN_C_API void XN_C_DECL xnLoggerWriteNoEntry(XnLogger *pLogger, XnLogSeverity severity, const XnChar *strFormat,...)
XnLogTypes.h
XnLogSeverity
XnLogSeverity
Definition XnLogTypes.h:43
XnOS.h
XN_C_API
#define XN_C_API
Definition XnPlatform.h:132
XnStatus
XnUInt32 XnStatus
Definition XnStatus.h:34
XnLogWriter
Definition XnLogTypes.h:72
XnLogger
Definition XnLogTypes.h:55