Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

log.h

Go to the documentation of this file.
00001 /*
00002     Simple Operating System for Smartcard Education
00003     Copyright (C) 2002  Matthias Bruestle <m@mbsks.franken.de>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00034 #ifndef SOSSE_LOG_H
00035 #define SOSSE_LOG_H
00036 
00037 #include <types.h>
00038 
00039 #define LOG_START           0x1800  
00040 
00041 #define LOG_TAG_JOKER       0xFE    
00042 #define LOG_TAG_EEWRITE_DST 0x01    
00043 #define LOG_TAG_EEWRITE_SRC 0x02    
00044 #define LOG_TAG_EEWRITE_LEN 0x03    
00045 #define LOG_TAG_EEREAD_DST  0x04    
00046 #define LOG_TAG_EEREAD_SRC  0x05    
00047 #define LOG_TAG_EEREAD_LEN  0x06    
00048 #define LOG_TAG_FSCREATE    0x07    
00049 #define LOG_TAG_RANDOM      0x08    
00050 
00051 
00057 extern bool log_enable;
00058 
00065 #if CONF_WITH_LOGGING==1
00066 void log_init( void );
00067 #else
00068 #define log_init()
00069 #endif
00070 
00081 #if CONF_WITH_LOGGING==1
00082 void log_add( iu8 tag, iu8 *data, iu8 len );
00083 #else
00084 #define log_add(tag,data,len)
00085 #endif
00086 
00087 #endif /* SOSSE_LOG_H */

Copyright 2002 by Matthias Bruestle. This is licensed under the GNU General Public License.