Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

wbxml_log.h

Go to the documentation of this file.
00001 /*
00002  * WBXML Lib, the WBXML Library.
00003  * Copyright (C) 2002-2003  Aymerick Jéhanne
00004  * 
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License (version 2.1) as published by the Free Software Foundation.
00008  * 
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  * LGPL v2.1: http://www.gnu.org/licenses/lgpl.txt
00019  *
00020  * Author Contact: libwbxml@jehanne.org
00021  * WBXML Lib home: http://libwbxml.jehanne.org
00022  */
00023  
00034 #ifndef WBXML_LOG_H
00035 #define WBXML_LOG_H
00036 
00037 #include <stdlib.h>
00038 
00039 
00040 #if defined( WBXML_USE_LEAKTRACKER )
00041 #include "leaktrack.h"
00042 #include "lt_log.h"
00043 #endif /* WBXML_USE_LEAKTRACKER */
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif /* __cplusplus */
00048 
00053 /* Compilation Flags: WBXML_LIB_VERBOSE / WBXML_USE_LEAKTRACKER */
00054 
00055 /* Log Macros */
00056 #if defined( WBXML_LIB_VERBOSE )
00057 #if defined( WBXML_USE_LEAKTRACKER )
00058 #define WBXML_DEBUG(msg)   lt_log msg
00059 #define WBXML_WARNING(msg) lt_log msg
00060 #define WBXML_ERROR(msg)   lt_log msg
00061 #define WBXML_PARSER 0x00
00062 #define WBXML_ENCODER 0x00
00063 #define WBXML_CONV 0x00
00064 #else  /* !WBXML_USE_LEAKTRACKER */
00065 #define WBXML_DEBUG(msg)   wbxml_log_error msg
00066 #define WBXML_WARNING(msg) wbxml_log_debug msg
00067 #define WBXML_ERROR(msg)   wbxml_log_warning msg
00068 #define WBXML_PARSER 0x01
00069 #define WBXML_ENCODER 0x02
00070 #define WBXML_CONV 0x03
00071 #endif /* WBXML_USE_LEAKTRACKER */
00072 #else  /* !WBXML_LIB_VERBOSE */
00073 #define WBXML_DEBUG(msg)
00074 #define WBXML_WARNING(msg)
00075 #define WBXML_ERROR(msg)
00076 #endif /* WBXML_LIB_VERBOSE */
00077 
00078 
00085 WBXML_DECLARE(void) wbxml_log_debug(WB_UTINY type, const WB_TINY *fmt, ...);
00086 
00093 WBXML_DECLARE(void) wbxml_log_warning(WB_UTINY type, const WB_TINY *fmt, ...);
00094 
00101 WBXML_DECLARE(void) wbxml_log_error(WB_UTINY type, const WB_TINY *fmt, ...);
00102 
00105 #ifdef __cplusplus
00106 }
00107 #endif /* __cplusplus */
00108 
00109 #endif /* WBXML_LOG_H */

Generated on Mon Nov 24 20:09:43 2003 for WBXML Library by doxygen1.3-rc1