kfile_fifo.h
Go to the documentation of this file.00001
00063 #ifndef STRUCT_KFILE_FIFO
00064 #define STRUCT_KFILE_FIFO
00065
00066 #include "fifobuf.h"
00067 #include <kern/kfile.h>
00068
00069 typedef struct KFileFifo
00070 {
00071 KFile fd;
00072 FIFOBuffer *fifo;
00073 } KFileFifo;
00074
00078 #define KFT_KFILEFIFO MAKE_ID('F', 'I', 'F', '0')
00079
00083 INLINE KFileFifo * KFILEFIFO_CAST(KFile *fd)
00084 {
00085 ASSERT(fd->_type == KFT_KFILEFIFO);
00086 return (KFileFifo *)fd;
00087 }
00088
00095 void kfilefifo_init(KFileFifo *kf, FIFOBuffer *fifo);
00096
00097 int kfilefifo_testSetup(void);
00098 int kfilefifo_testRun(void);
00099 int kfilefifo_testTearDown(void);
00100 #endif