Make the has string and has vector functions public.

This commit is contained in:
2018-02-25 22:57:45 -08:00
parent 52ac67026f
commit 88108bb3c0
2 changed files with 26 additions and 12 deletions

View File

@@ -72,6 +72,20 @@ typedef struct libab_tree_s libab_tree;
* @param tree the tree to free.
*/
void libab_tree_free(libab_tree* tree);
/**
* Determines if the given tree node variant
* should contain a string.
* @param var the variant of the tree node.
* @return true if the tree node variant contains a string.
*/
int libab_tree_has_string(libab_tree_variant var);
/**
* Determines if the given tree node variant
* should contain a vector.
* @param var the variant of the tree node.
* @return true if the tree node variant contains a vector.
*/
int libab_tree_has_vector(libab_tree_variant var);
/**
* Frees the given tree recursively,
* deleting the children first and the moving on