michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: /* michael@0: * pkix_logger.h michael@0: * michael@0: * Logger Object Type Definition michael@0: * michael@0: */ michael@0: michael@0: #ifndef _PKIX_LOGGER_H michael@0: #define _PKIX_LOGGER_H michael@0: michael@0: #include "pkix_tools.h" michael@0: michael@0: #ifdef __cplusplus michael@0: extern "C" { michael@0: #endif michael@0: michael@0: extern PKIX_List *pkixLoggers; michael@0: extern PKIX_List *pkixLoggersErrors; michael@0: extern PKIX_List *pkixLoggersDebugTrace; michael@0: michael@0: struct PKIX_LoggerStruct { michael@0: PKIX_Logger_LogCallback callback; michael@0: PKIX_PL_Object *context; michael@0: PKIX_UInt32 maxLevel; michael@0: PKIX_ERRORCLASS logComponent; michael@0: }; michael@0: michael@0: PKIX_Error * michael@0: pkix_Logger_Check( michael@0: PKIX_List *pkixLoggersList, michael@0: const char *message, michael@0: const char *message2, michael@0: PKIX_ERRORCLASS logComponent, michael@0: PKIX_UInt32 maxLevel, michael@0: void *plContext); michael@0: michael@0: PKIX_Error * michael@0: pkix_Logger_CheckWithCode( michael@0: PKIX_List *pkixLoggersList, michael@0: PKIX_UInt32 errorCode, michael@0: const char *message2, michael@0: PKIX_ERRORCLASS logComponent, michael@0: PKIX_UInt32 maxLevel, michael@0: void *plContext); michael@0: michael@0: /* see source file for function documentation */ michael@0: michael@0: PKIX_Error *pkix_Logger_RegisterSelf(void *plContext); michael@0: michael@0: #ifdef __cplusplus michael@0: } michael@0: #endif michael@0: michael@0: #endif /* _PKIX_LOGGER_H */