aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-02 21:10:49 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2022-07-08 19:17:35 +0200
commit10ab81a0de97513d82d05945c12bff87b02ede27 (patch)
treea5245ac495011588799da3bca5b7a35f8dc67bd9 /include
parent86a947b9446b9b5d881d1a974cfe1bcde9d08f2f (diff)
Cleanup: move mkdir_p from libcommon to libutil
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/common.h8
-rw-r--r--include/util/util.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/include/common.h b/include/common.h
index 91dccaa..cbd73b2 100644
--- a/include/common.h
+++ b/include/common.h
@@ -51,14 +51,6 @@ void sqfs_perror(const char *file, const char *action, int error_code);
int sqfs_tree_find_hard_links(const sqfs_tree_node_t *root,
sqfs_hard_link_t **out);
-/*
- A wrapper around mkdir() that behaves like 'mkdir -p'. It tries to create
- every component of the given path and skips already existing entries.
-
- Returns 0 on success.
-*/
-int mkdir_p(const char *path);
-
/* A common implementation of the '--version' command line flag. */
void print_version(const char *progname);
diff --git a/include/util/util.h b/include/util/util.h
index 4b05340..af7d196 100644
--- a/include/util/util.h
+++ b/include/util/util.h
@@ -35,4 +35,12 @@ SQFS_INTERNAL sqfs_u32 xxh32(const void *input, const size_t len);
*/
SQFS_INTERNAL bool is_memory_zero(const void *blob, size_t size);
+/*
+ A wrapper around mkdir() that behaves like 'mkdir -p'. It tries to create
+ every component of the given path and skips already existing entries.
+
+ Returns 0 on success.
+*/
+SQFS_INTERNAL int mkdir_p(const char *path);
+
#endif /* SQFS_UTIL_H */