1 /* 2 $Id: cddb_log_ni.h,v 1.3 2005/03/11 21:29:29 airborne Exp $ 3 4 Copyright (C) 2003, 2004, 2005 Kris Verbeeck <airborne@advalvas.be> 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Library General Public 8 License as published by the Free Software Foundation; either 9 version 2 of the License, or (at your option) any later version. 10 11 This library is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Library General Public License for more details. 15 16 You should have received a copy of the GNU Library General Public 17 License along with this library; if not, write to the 18 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 19 Boston, MA 02111-1307, USA. 20 */ 21 22 #ifndef CDDB_LOG_NI_H 23 #define CDDB_LOG_NI_H 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 30 /** 31 */ 32 void cddb_log(cddb_log_level_t level, const char *format, ...); 33 34 /** 35 */ 36 #define cddb_log_debug(...) cddb_log(CDDB_LOG_DEBUG, __VA_ARGS__) 37 38 /** 39 */ 40 #define cddb_log_info(...) cddb_log(CDDB_LOG_INFO, __VA_ARGS__) 41 42 /** 43 */ 44 #define cddb_log_warn(...) cddb_log(CDDB_LOG_WARN, __VA_ARGS__) 45 46 /** 47 */ 48 #define cddb_log_error(...) cddb_log(CDDB_LOG_ERROR, __VA_ARGS__) 49 50 /** 51 */ 52 #define cddb_log_crit(...) cddb_log(CDDB_LOG_CRITICAL, __VA_ARGS__) 53 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif /* CDDB_LOG_NI_H */ 60