ESP Tree view.

This commit is contained in:
2022-09-10 22:12:31 +10:00
parent 222df3c54c
commit ad3e4b14fc
4 changed files with 242 additions and 82 deletions

View File

@@ -247,7 +247,7 @@ extern "C" {
*/
struct meta_node {
Node n;
MetaNode *parent;
void *user;
MetaNode *first_child;
MetaNode *last_child;
MetaNode *prev;
@@ -255,6 +255,9 @@ extern "C" {
};
struct meta_tree {
// hack, not usable when modifying tree
SizedBuf tree;
SizedBuf esp;
MetaNode *root;
size_t size;
};
@@ -395,6 +398,8 @@ extern "C" {
void espr_serialize(MetaTree tree, SizedBuf out);
void espr_meta_string(MetaNode *m, SizedBuf str_buf);
// End C++ guard
#ifdef __cplusplus
}