summaryrefslogtreecommitdiff
path: root/src/tree.h
blob: 4e62dd332d7408123016ae3918eda9ff33702bde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
struct Tree;

int
tree_new(const size_t value_size, const struct Tree **const out);

void
tree_free(const struct Tree **const t);

int
tree_add(const struct Tree *const t, const void *const value);

bool
tree_remove(const struct Tree *const t, const void *const value);

bool
tree_contains(const struct Tree *const, const void *const value);