summaryrefslogtreecommitdiff
path: root/library/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'library/tree.c')
-rw-r--r--library/tree.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/library/tree.c b/library/tree.c
new file mode 100644
index 0000000..0519767
--- /dev/null
+++ b/library/tree.c
@@ -0,0 +1,16 @@
+#include <utils.h>
+
+typedef struct {
+ Node *parent;
+ u64 nodeType;
+ void *value;
+} Node;
+
+typedef struct {
+ void *page;
+} TreeAllocator;
+
+typedef struct {
+ TreeAllocator allocactor;
+ Node *root;
+} Tree;