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