88 int (*
write)(
struct ustream *s,
const char *buf,
int len,
bool more);
176 return b->data_bytes;
183 s->r.buffers == s->r.max_buffers;
struct blob_attr_info __attribute__
int(* alloc)(struct ustream *s, struct ustream_buf_list *l)
struct ustream_buf * tail
struct ustream_buf * head
struct ustream_buf * data_tail
struct ustream_buf * next
struct ustream_buf_list r w
void(* notify_write)(struct ustream *s, int bytes)
int(* write)(struct ustream *s, const char *buf, int len, bool more)
void(* set_read_blocked)(struct ustream *s)
void(* notify_read)(struct ustream *s, int bytes_new)
void(* free)(struct ustream *s)
void(* notify_state)(struct ustream *s)
struct uloop_timeout state_change
bool(* poll)(struct ustream *s)
enum read_blocked_reason read_blocked
int uloop_timeout_set(struct uloop_timeout *timeout, int msecs)
static bool ustream_read_blocked(struct ustream *s)
int int char * ustream_get_read_buf(struct ustream *s, int *buflen)
void ustream_fd_init(struct ustream_fd *s, int fd)
static bool ustream_read_buf_full(struct ustream *s)
int ustream_printf(struct ustream *s, const char *format,...) __attribute__((format(printf
void ustream_init_defaults(struct ustream *s)
void ustream_free(struct ustream *s)
void ustream_consume(struct ustream *s, int len)
bool ustream_write_pending(struct ustream *s)
void ustream_fill_read(struct ustream *s, int len)
static bool ustream_poll(struct ustream *s)
char * ustream_reserve(struct ustream *s, int len, int *maxlen)
int int ustream_vprintf(struct ustream *s, const char *format, va_list arg) __attribute__((format(printf
void ustream_set_read_blocked(struct ustream *s, bool set)
static int ustream_pending_data(struct ustream *s, bool write)
static void ustream_state_change(struct ustream *s)
int ustream_read(struct ustream *s, char *buf, int buflen)
int ustream_write(struct ustream *s, const char *buf, int len, bool more)