From fe7d0332267ef1e62153b685d2b5574ce624a4bc Mon Sep 17 00:00:00 2001 From: Miguel Date: Sat, 15 Sep 2018 00:30:36 +0200 Subject: reading ext2 files and using our abstractions --- kernel/fd.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 kernel/fd.h (limited to 'kernel/fd.h') diff --git a/kernel/fd.h b/kernel/fd.h deleted file mode 100644 index 8c7ea45..0000000 --- a/kernel/fd.h +++ /dev/null @@ -1,29 +0,0 @@ -// SIMPLE FILE DESCRIPTOR // - -#ifndef FD_H -#define FD_H - -#include -#include - -#include "fifo.h" - -typedef struct fd_struct -{ - bool (*write)(struct fd_struct*,uint8_t); - uint8_t (*read)(struct fd_struct*); - bool (*has)(struct fd_struct*); - bool (*close)(struct fd_struct*); - - void *data; // opaque data -}fd; - -uint8_t fd_read(fd*); -bool fd_has(fd*); -bool fd_write(fd*,uint8_t); -bool fd_close(fd*); - -fd fd_from_fifo(fifo* f); -//fd fd_from_path(char *path); - -#endif -- cgit v1.2.3