aboutsummaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-07-02 19:31:51 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-07-03 09:31:51 +0200
commitec593e0b94656a5481f82ee0f33728ced297ac48 (patch)
treec4172c686b628ff3d0c198dc05aa0db83239d6bd /include/io
parent181815fb432007f5e8b8cbd15c3f66beea04e601 (diff)
Refactor: rename dir_entry_t to sqfs_dir_entry_t
Exact operation performed: git ls-files -z | \ xargs -0 sed -i -e 's/dir_entry_t/sqfs_dir_entry_t/g Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/io')
-rw-r--r--include/io/dir_entry.h6
-rw-r--r--include/io/dir_iterator.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/include/io/dir_entry.h b/include/io/dir_entry.h
index be5c400..8ff8cf0 100644
--- a/include/io/dir_entry.h
+++ b/include/io/dir_entry.h
@@ -16,7 +16,7 @@ typedef enum {
} DIR_ENTRY_FLAG;
/**
- * @struct dir_entry_t
+ * @struct sqfs_dir_entry_t
*
* @brief A directory entry returned by a @ref dir_iterator_t
*/
@@ -82,13 +82,13 @@ typedef struct {
* Windows with encoding-aware APIs, the name is converted to UTF-8.
*/
char name[];
-} dir_entry_t;
+} sqfs_dir_entry_t;
#ifdef __cplusplus
extern "C" {
#endif
-dir_entry_t *dir_entry_create(const char *name);
+sqfs_dir_entry_t *dir_entry_create(const char *name);
#ifdef __cplusplus
}
diff --git a/include/io/dir_iterator.h b/include/io/dir_iterator.h
index 1ea3321..18c0e9a 100644
--- a/include/io/dir_iterator.h
+++ b/include/io/dir_iterator.h
@@ -27,7 +27,7 @@ typedef struct dir_iterator_t {
* @return Zero on success, postivie value if the end of the list was
* reached, negative @ref SQFS_ERROR value on failure.
*/
- int (*next)(struct dir_iterator_t *it, dir_entry_t **out);
+ int (*next)(struct dir_iterator_t *it, sqfs_dir_entry_t **out);
/**
* @brief If the last entry was a symlink, extract the target path