stdin.c: btr preparations.
[paraslash.git] / buffer_tree.h
index 8a7a33b..0421780 100644 (file)
@@ -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);