aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-10 22:41:34 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-10 22:41:34 +0200
commit0742ee3943192434d69092f11946f791f0f25502 (patch)
tree64a88d77e911d040c0b24741a4d6506e0cf37707 /include
parent69de75de97c17ef7370b26944ee286e4b3dc6266 (diff)
Add generic function to produce a full path from an fstree node
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 284792b..ef2ffb1 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -254,4 +254,12 @@ int fstree_relabel_selinux(fstree_t *fs, const char *filename);
/* Returns 0 on success. Prints to stderr on failure */
int fstree_gen_inode_table(fstree_t *fs);
+/*
+ Generate a string holding the full path of a node. Returned
+ string must be freed.
+
+ Returns NULL on failure and sets errno.
+*/
+char *fstree_get_path(tree_node_t *node);
+
#endif /* FSTREE_H */