diff options
Diffstat (limited to 'src/stream.h')
-rw-r--r-- | src/stream.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stream.h b/src/stream.h new file mode 100644 index 0000000..29bf46e --- /dev/null +++ b/src/stream.h @@ -0,0 +1,17 @@ +#ifndef foostreamhfoo +#define foostreamhfoo + + +struct stream { + int input_fd, output_fd; + + void (*destruct) (struct stream *s); + + void* user; +}; + +struct stream* stream_open(const char *sspec); +void stream_close(struct stream *s); + + +#endif |