From ace0646608c393d8952b14536090c302bed2ee85 Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 21 Sep 2018 01:43:25 +0200 Subject: piperei working finally :) --- fs/fd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fs/fd.h') diff --git a/fs/fd.h b/fs/fd.h index 64a53ed..21037c8 100644 --- a/fs/fd.h +++ b/fs/fd.h @@ -10,7 +10,7 @@ #include "ringbuffer.h" enum FD_TYPE{ - FD_TYPE_FIFO_BUFFERED=1, + FD_TYPE_FIFO=1, FD_TYPE_EXT2_FILE=2, FD_TYPE_EXT2_DIR=3, FD_TYPE_SYSFS=4, @@ -24,6 +24,7 @@ typedef struct fd_struct bool (*has)(struct fd_struct*); bool (*eof)(struct fd_struct*); bool (*close)(struct fd_struct*); + struct fd_struct (*dupl)(struct fd_struct *); uint8_t type; void *data; // opaque data @@ -34,6 +35,7 @@ bool fd_has(fd*); bool fd_eof(fd*); bool fd_write(fd*,uint8_t); bool fd_close(fd*); +fd fd_dupl(fd*); fd fd_from_fifo(fifo* f); fd fd_from_path(char *path); -- cgit v1.2.3