security/nss/lib/libpkix/pkix/util/pkix_logger.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/lib/libpkix/pkix/util/pkix_logger.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +/*
     1.8 + * pkix_logger.h
     1.9 + *
    1.10 + * Logger Object Type Definition
    1.11 + *
    1.12 + */
    1.13 +
    1.14 +#ifndef _PKIX_LOGGER_H
    1.15 +#define _PKIX_LOGGER_H
    1.16 +
    1.17 +#include "pkix_tools.h"
    1.18 +
    1.19 +#ifdef __cplusplus
    1.20 +extern "C" {
    1.21 +#endif
    1.22 +
    1.23 +extern PKIX_List *pkixLoggers;
    1.24 +extern PKIX_List *pkixLoggersErrors;
    1.25 +extern PKIX_List *pkixLoggersDebugTrace;
    1.26 +
    1.27 +struct PKIX_LoggerStruct {
    1.28 +        PKIX_Logger_LogCallback callback;
    1.29 +        PKIX_PL_Object *context;
    1.30 +        PKIX_UInt32 maxLevel;
    1.31 +        PKIX_ERRORCLASS logComponent;
    1.32 +};
    1.33 +
    1.34 +PKIX_Error *
    1.35 +pkix_Logger_Check(
    1.36 +        PKIX_List *pkixLoggersList,
    1.37 +        const char *message,
    1.38 +        const char *message2,
    1.39 +        PKIX_ERRORCLASS logComponent,
    1.40 +        PKIX_UInt32 maxLevel,
    1.41 +        void *plContext);
    1.42 +
    1.43 +PKIX_Error *
    1.44 +pkix_Logger_CheckWithCode(
    1.45 +        PKIX_List *pkixLoggersList,
    1.46 +        PKIX_UInt32 errorCode,
    1.47 +        const char *message2,
    1.48 +        PKIX_ERRORCLASS logComponent,
    1.49 +        PKIX_UInt32 maxLevel,
    1.50 +        void *plContext);
    1.51 +
    1.52 +/* see source file for function documentation */
    1.53 +
    1.54 +PKIX_Error *pkix_Logger_RegisterSelf(void *plContext);
    1.55 +
    1.56 +#ifdef __cplusplus
    1.57 +}
    1.58 +#endif
    1.59 +
    1.60 +#endif /* _PKIX_LOGGER_H */

mercurial