diff options
author | Katharina Fey <kookie@spacekookie.de> | 2016-08-21 12:12:59 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2016-08-21 12:12:59 +0200 |
commit | cf97068884083c7d1d1bc95fb3099b113d7e8dad (patch) | |
tree | 71d08a874678c6ac8e9595511cf1218d45c21f94 /lib/dyn_tree.c | |
parent | 2317004e19eadae8742645dc71ca18957c8f43c1 (diff) |
Adding new functions to API
- Encode a dyntree object hirarchy into json
- Decode a json string to a dyntree object hirarchy
- Split a tree in two (no longer related) sub-trees
- Merge two non-related subtrees together
Diffstat (limited to '')
-rw-r--r-- | lib/dyn_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dyn_tree.c b/lib/dyn_tree.c index 095d379..6cb456b 100644 --- a/lib/dyn_tree.c +++ b/lib/dyn_tree.c @@ -9,7 +9,6 @@ #define RDB_REC_DEF_SIZE 2 #define RDB_REC_MULTIPLY 2 -#define REAL_STRLEN(str) (strlen(str) + 1) dt_err dtree_malloc(dtree *(*data)) { @@ -42,6 +41,7 @@ dt_err dtree_resettype(dtree *data) /* Set the data type to unset */ data->type = UNSET; + data->encset = DYNTREE_ENCODE_NONE; data->size = 0; data->used = 0; |