From da7eb3445cab5936455b8a119cb656113ca3d402 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 3 Jul 2019 18:50:33 +0200 Subject: cleanup: move tree node from path function to libfstree.a Signed-off-by: David Oberhollenzer --- include/fstree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/fstree.h b/include/fstree.h index 6c2ec0b..ea7cf88 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -265,4 +265,7 @@ tree_node_t *tree_node_list_sort(tree_node_t *head); /* ASCIIbetically sort all sub directories recursively */ void tree_node_sort_recursive(tree_node_t *root); +/* resolve a path to a tree node. Returns NULL on failure and sets errno */ +tree_node_t *fstree_node_from_path(fstree_t *fs, const char *path); + #endif /* FSTREE_H */ -- cgit v1.2.3