]> git.ipfire.org Git - thirdparty/git.git/blob - oidtree.h
Merge branch 'hn/refs-test-cleanup'
[thirdparty/git.git] / oidtree.h
1 #ifndef OIDTREE_H
2 #define OIDTREE_H
3
4 #include "cbtree.h"
5 #include "hash.h"
6 #include "mem-pool.h"
7
8 struct oidtree {
9 struct cb_tree tree;
10 struct mem_pool mem_pool;
11 };
12
13 void oidtree_init(struct oidtree *);
14 void oidtree_clear(struct oidtree *);
15 void oidtree_insert(struct oidtree *, const struct object_id *);
16 int oidtree_contains(struct oidtree *, const struct object_id *);
17
18 typedef enum cb_next (*oidtree_iter)(const struct object_id *, void *data);
19 void oidtree_each(struct oidtree *, const struct object_id *,
20 size_t oidhexsz, oidtree_iter, void *data);
21
22 #endif /* OIDTREE_H */