Main Page | Directories | File List | File Members

kstrace.h

Go to the documentation of this file.
00001 #ifndef __KSTRACE__H__
00002 #define __KSTRACE__H__
00003 
00004 /* This file is part of maemo-af-desktop 
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public License
00007  * version 2.1 as published by the Free Software Foundation.
00008  *
00009  * This library is distributed in the hope that it will be useful, but
00010  * 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., 51 Franklin St, Fifth Floor, Boston, MA
00017  * 02110-1301 USA
00018  *
00019  */
00020 
00021 
00042 #include <stdio.h>
00043 #include <stdlib.h>
00044 #include <string.h>
00045 
00046 // will be changed later to bits
00047 #define TEXCEPTION 1
00048 #define TWARNING 2
00049 #define TDEBUG 3
00050 
00051 #define TRACE_ERR(_x,_y) fprintf(stdout,"ERROR: %s\n",_y);
00052 #define TRACE_ERR2(_x,_y,_z) fprintf(stdout,"ERROR: %s. Error code=%ld\n",_y,_z);
00053 #define TRACE(_x,_y) fprintf(stdout,"TRACE LOG: %s\n",_y);
00054 
00055 #endif

Generated on Thu Dec 21 11:26:52 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2