aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-03 18:50:33 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-03 18:50:33 +0200
commitda7eb3445cab5936455b8a119cb656113ca3d402 (patch)
treef3ab70532f0587788df8e691be0ec3b15db3db6c /include
parente981f2e460092e5ae6ad58a60869b78d7f50ec10 (diff)
cleanup: move tree node from path function to libfstree.a
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h3
1 files changed, 3 insertions, 0 deletions
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 */