1 #ifndef __LUNAIX_SPARSE_H
2 #define __LUNAIX_SPARSE_H
4 #include <lunaix/ds/llist.h>
5 #include <lunaix/types.h>
11 struct btrie_node* btrie_root;
17 struct llist_header children;
18 struct llist_header siblings;
19 struct llist_header nodes;
20 struct btrie_node* parent;
26 btrie_init(struct btrie* btrie, u32_t trunc_bits);
29 btrie_get(struct btrie* root, u32_t index);
32 btrie_set(struct btrie* root, u32_t index, void* data);
35 btrie_remove(struct btrie* root, u32_t index);
38 btrie_release(struct btrie* tree);
40 #endif /* __LUNAIX_SPARSE_H */