[btr:] Rename btr_merge().
[paraslash.git] / buffer_tree.h
1
2 struct btr_node;
3
4 typedef int (*btr_command_handler)(struct btr_node *btrn,
5 const char *command, char **result);
6
7 struct btr_node *btr_new_node(const char *name, struct btr_node *parent,
8 btr_command_handler handler, void *context);
9 void btr_del_node(struct btr_node *btrn);
10 void btr_add_output(char *buf, size_t size, struct btr_node *btrn);
11 bool btr_no_children(struct btr_node *btrn);
12 size_t btr_bytes_pending(struct btr_node *btrn);
13 size_t btr_get_input_queue_size(struct btr_node *btrn);
14 bool btr_no_parent(struct btr_node *btrn);
15 size_t btr_next_buffer(struct btr_node *btrn, char **bufp);
16 void btr_consume(struct btr_node *btrn, size_t numbytes);
17 int btr_exec(struct btr_node *btrn, const char *command, char **value_result);
18 int btr_exec_up(struct btr_node *btrn, const char *command, char **value_result);
19 void btr_splice_out_node(struct btr_node *btrn);
20 void btr_pushdown(struct btr_node *btrn);
21 void *btr_context(struct btr_node *btrn);
22 void btr_merge(struct btr_node *btrn, size_t dest_size);
23 bool btr_eof(struct btr_node *btrn);