Convert file descriptors to generic streams

This commit is contained in:
2026-06-18 21:46:18 +03:00
parent bcf2e5bac6
commit 9761e3e870
20 changed files with 150 additions and 79 deletions
+4 -1
View File
@@ -76,7 +76,10 @@ static uint64_t stream_read(__attribute__((unused)) const stream_t *self, uint64
return size;
}
static stream_t stream = {stream_write, stream_read};
static void stream_close(__attribute__((unused)) stream_t *self) {
}
static stream_t stream = {stream_write, stream_read, stream_close};
static void on_key(uint8_t scancode) {
const uint8_t pressed = !(scancode & 0x80);