diff options
| author | Miguel <m.i@gmx.at> | 2018-09-21 01:43:25 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-21 01:43:25 +0200 |
| commit | ace0646608c393d8952b14536090c302bed2ee85 (patch) | |
| tree | 5d96e0d0a66c27818b677af3a84ef52af0260be1 /fs/fd.h | |
| parent | aeefdb37d1fc1c0eb7953b9c196cab09460bc167 (diff) | |
piperei working finally :)
Diffstat (limited to 'fs/fd.h')
| -rw-r--r-- | fs/fd.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |
