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, unsigned int order);
29 btrie_get(struct btrie* root, unsigned long index);
32 btrie_set(struct btrie* root, unsigned long index, void* data);
35 btrie_remove(struct btrie* root, unsigned long index);
38 btrie_release(struct btrie* tree);
40 #endif /* __LUNAIX_SPARSE_H */