// TODO: Implement this properly. #ifndef STREAM_H_ #define STREAM_H_ #include "../bang.h" typedef struct { bool connected; bool transmitting; } Channel; typedef struct { Channel input; Channel output; } Bytestream; // Bedrock stream device. typedef struct { Bytestream local; Bytestream remote; } StreamDevice; // Methods. void stream_reset(StreamDevice *stream); void stream_write(StreamDevice *stream, u8 byte); void stream_end(StreamDevice *stream); // Duplicate declarations from main. void receive_keyboard_byte(u8 byte); void close_keyboard(void); #endif