#include #include 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; };