ESP Tree view.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user