From 7ce4b36d517ac5fade36240d293ff784ef6a9305 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 5 May 2023 01:25:43 +0200 Subject: Internalize fstree_mknode, consolidate fstree functionality The fstree_mknode function is only used internally, remove the declaration from the header and internalize it. The code using it is consolidated into fstree.c. Signed-off-by: David Oberhollenzer --- include/fstree.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'include') diff --git a/include/fstree.h b/include/fstree.h index 96ddf8f..83b7737 100644 --- a/include/fstree.h +++ b/include/fstree.h @@ -126,22 +126,6 @@ int fstree_init(fstree_t *fs, const fstree_defaults_t *defaults); void fstree_cleanup(fstree_t *fs); -/* - Create a tree node from a struct stat, node name and extra data. - - For symlinks, the extra part is interpreted as target. For regular files, it - is interpreted as input path (can be NULL). The name doesn't have to be null - terminated, a length has to be specified. - - This function does not print anything to stderr, instead it sets an - appropriate errno value. - - The resulting node can be freed with a single free() call. -*/ -tree_node_t *fstree_mknode(tree_node_t *parent, const char *name, - size_t name_len, const char *extra, - const struct stat *sb); - /* Add a node to an fstree at a specific path. -- cgit v1.2.3