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