30typedef struct xtc_stream xtc_stream_t;
38typedef int (*xtc_stream_next_fn)(
void *ctx,
void **out);
51int xtc_stream_create(xtc_stream_next_fn next,
void *ctx,
58void xtc_stream_destroy(xtc_stream_t *s);
61int xtc_stream_next(xtc_stream_t *s,
void **out);
65int xtc_stream_map(xtc_stream_t *s,
66 void *(*fn)(
void *v,
void *user),
void *user,
71int xtc_stream_filter(xtc_stream_t *s,
72 int (*pred)(
void *v,
void *user),
void *user,
80int xtc_stream_for_each(xtc_stream_t *s,
81 int (*fn)(
void *v,
void *user),
void *user);
86int xtc_stream_from_demand(xtc_chan_demand_t *ch, xtc_stream_t **out);