1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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