aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-05-05 01:25:43 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-05-05 01:26:06 +0200
commit7ce4b36d517ac5fade36240d293ff784ef6a9305 (patch)
treef0c246595251d27f62010aca770b25bb5f7ea336 /include
parent7a39921d7fff089c87ac183d3c0d6e42e5cbaa04 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 96ddf8f..83b7737 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -127,22 +127,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.
If some components of the path don't exist, they are created as directories