BeRTOS
kfile_debug.h
Go to the documentation of this file.
00001 
00042 #ifndef CFG_KFILE_DEBUG
00043 #define CFG_KFILE_DEBUG
00044 
00045 #include <io/kfile.h>
00046 
00050 typedef struct KFileDebug
00051 {
00052     KFile fd;  
00053 } KFileDebug;
00054 
00058 #define KFT_KFILEDEBUG MAKE_ID('K', 'D', 'B', 'G')
00059 
00063 INLINE KFileDebug * KFILEDEBUG_CAST(KFile *fd)
00064 {
00065     ASSERT(fd->_type == KFT_KFILEDEBUG);
00066     return (KFileDebug *)fd;
00067 }
00068 
00074 void kfiledebug_init(KFileDebug *km);
00075 
00076 #endif /* CFG_KFILE_DEBUG */