2025-09-13 11:16:28 +10:00
|
|
|
#ifndef CURSETREE_TREE_H
|
|
|
|
|
#define CURSETREE_TREE_H
|
|
|
|
|
|
|
|
|
|
#include "node.h"
|
|
|
|
|
|
2025-09-13 11:21:34 +10:00
|
|
|
struct ct_tree {
|
|
|
|
|
struct ct_node *root;
|
2025-09-13 11:16:28 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* === External Interface === */
|
2025-09-13 11:21:34 +10:00
|
|
|
int init_tree(struct ct_tree **const tree);
|
|
|
|
|
void destroy_tree(struct ct_tree *const tree);
|
|
|
|
|
void resize_tree(struct ct_tree *const tree, struct ct_dims *const dims);
|
2025-09-13 11:16:28 +10:00
|
|
|
|
|
|
|
|
#endif /* CURSETREE_TREE_H */
|