summaryrefslogtreecommitdiffstats
path: root/lib/rbtree.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbtree.h')
-rw-r--r--lib/rbtree.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/rbtree.h b/lib/rbtree.h
new file mode 100644
index 0000000..1dbd5b2
--- /dev/null
+++ b/lib/rbtree.h
@@ -0,0 +1,17 @@
+#ifndef _JOVE_LIB_RBTREE_H
+#define _JOVE_LIB_RBTREE_H 1
+
+#include <stdint.h>
+
+struct rbtree_node
+{
+ struct rbtree_node *parent;
+ struct rbtree_node *children[2];
+
+ char color;
+ intmax_t (*get_key)(struct rbtree_node*);
+};
+
+
+
+#endif