// SIMPLE FIFO DRIVER #ifndef FIFO_H #define FIFO_H #include #include typedef struct fifo_struct { bool (*put)(struct fifo_stuct*,uint8_t); uint8_t (*get)(struct fifo_struct*); bool (*has)(struct fifo_struct*); void *data; // opaque! can be a vt52 or a ringbuffer.. }fifo; bool fifo_put(fifo*,uint8_t); uint8_t fifo_get(fifo*); bool fifo_has(fifo*); #endif