Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CyaSSL by
logging.h
00001 /* logging.h 00002 * 00003 * Copyright (C) 2006-2014 wolfSSL Inc. 00004 * 00005 * This file is part of CyaSSL. 00006 * 00007 * CyaSSL is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * CyaSSL is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00020 */ 00021 00022 /* submitted by eof */ 00023 00024 00025 #ifndef CYASSL_LOGGING_H 00026 #define CYASSL_LOGGING_H 00027 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 00034 enum CYA_Log_Levels { 00035 ERROR_LOG = 0, 00036 INFO_LOG, 00037 ENTER_LOG, 00038 LEAVE_LOG, 00039 OTHER_LOG 00040 }; 00041 00042 typedef void (*CyaSSL_Logging_cb)(const int logLevel, 00043 const char *const logMessage); 00044 00045 CYASSL_API int CyaSSL_SetLoggingCb(CyaSSL_Logging_cb log_function); 00046 00047 00048 #ifdef DEBUG_CYASSL 00049 00050 void CYASSL_ENTER(const char* msg); 00051 void CYASSL_LEAVE(const char* msg, int ret); 00052 00053 void CYASSL_ERROR(int); 00054 void CYASSL_MSG(const char* msg); 00055 00056 #else /* DEBUG_CYASSL */ 00057 00058 #define CYASSL_ENTER(m) 00059 #define CYASSL_LEAVE(m, r) 00060 00061 #define CYASSL_ERROR(e) 00062 #define CYASSL_MSG(m) 00063 00064 #endif /* DEBUG_CYASSL */ 00065 00066 #ifdef __cplusplus 00067 } 00068 #endif 00069 00070 #endif /* CYASSL_MEMORY_H */ 00071
Generated on Tue Jul 12 2022 21:40:05 by
1.7.2
