diff options
Diffstat (limited to 'include/stream.h')
| -rw-r--r-- | include/stream.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/stream.h b/include/stream.h new file mode 100644 index 0000000..6bdc29e --- /dev/null +++ b/include/stream.h @@ -0,0 +1,10 @@ +#include <stdint.h> +#include <stddef.h> + +typedef struct p_stream_s p_stream_t; + +struct p_stream_s { + int (*read)(uint8_t *buf, size_t len, void **vptr, void *sptr); + int (*write)(uint8_t *buf, size_t len, void **vptr, void *sptr); + void **props; +}; |
