X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=buffer_tree.h;h=04217801f70b934eb25987aeb4237e919d13bc4c;hp=8a7a33b8316c8aee5b6156cb4dd64f7749999d6e;hb=aa05cb41dd2f031935507e89b56b1e6096b846db;hpb=0d6679a8036a45c03d0c5872a4cf6e9c6f87618f diff --git a/buffer_tree.h b/buffer_tree.h index 8a7a33b8..04217801 100644 --- a/buffer_tree.h +++ b/buffer_tree.h @@ -4,4 +4,9 @@ struct btr_node; struct btr_node *btr_new_node(char *name, struct btr_node *parent); void btr_del_node(struct btr_node *btrn); void btr_add_output(char *buf, size_t size, struct btr_node *btrn); -bool btr_is_leaf_node(struct btr_node *btrn); +bool btr_no_children(struct btr_node *btrn); +size_t btr_bytes_pending(struct btr_node *btrn); +size_t btr_get_input_queue_size(struct btr_node *btrn); +bool btr_no_parent(struct btr_node *btrn); +size_t btr_next_buffer(struct btr_node *btrn, char **bufp); +void btr_consume(struct btr_node *btrn, size_t numbytes);