00001 /* 00002 one line to give the program's name and an idea of what it does. 00003 Copyright (C) 2007 , 00004 00005 This program is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU General Public License 00007 as published by the Free Software Foundation; either version 2 00008 of the License, or (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 00019 Filename: debug.h 00020 00021 Description: 00022 00023 Version: 1.0 00024 Created: 06/13/07 20:54:53 CEST 00025 Revision: none 00026 00027 Author: Daniele Rondina aka Ge@@ru (geaaru@gmail.com) 00028 License: GPL 2.0 00029 */ 00030 00038 #ifndef DEBUG_EASYDBUS_H 00039 #define DEBUG_EASYDBUS_H 1 00040 00041 # ifdef __cplusplus 00042 extern "C" { 00043 # endif 00044 00045 # ifndef EASYDBUS_DEBUG 00046 # define EasyDbusDebug(fmt...) do {} while (0) 00047 # else 00048 00053 # define EasyDbusDebug(fmt...) do { \ 00054 _EasyDbusDebug (__FILE__, __FUNCTION__, __LINE__, fmt); \ 00055 } while (0) 00056 # endif 00057 00058 void _EasyDbusDebug (const char *file, 00059 const char *function, int line, 00060 const char *fmt, ...); 00061 00062 # ifdef TOFILE_DEBUG 00063 int 00064 easydbus_init_logger (char *); 00065 00066 void 00067 easydbus_deinit_logger (void); 00068 # endif 00069 00070 # ifdef __cplusplus 00071 } 00072 # endif 00073 #endif 00074 // vim: ts=3 shiftwidth=3 expandtab