stdin.c: btr preparations.
[paraslash.git] / buffer_tree.h
1
2 struct btr_node;
3
4 struct btr_node *btr_new_node(char *name, struct btr_node *parent);
5 void btr_del_node(struct btr_node *btrn);
6 void btr_add_output(char *buf, size_t size, struct btr_node *btrn);
7 bool btr_no_children(struct btr_node *btrn);
8 size_t btr_bytes_pending(struct btr_node *btrn);
9 size_t btr_get_input_queue_size(struct btr_node *btrn);
10 bool btr_no_parent(struct btr_node *btrn);
11 size_t btr_next_buffer(struct btr_node *btrn, char **bufp);
12 void btr_consume(struct btr_node *btrn, size_t numbytes);