aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-16 22:05:36 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-17 12:21:09 +0200
commitb178c36ece2cacdc188c0af43f6700d070cf7168 (patch)
tree88c40a309c94b5c648c78d46177578a8ece46858 /include
parent013fcc9475968675587828bfc9d633e181263c0c (diff)
Implement a version of the directory iterator for Unix
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/util/dir_iterator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/util/dir_iterator.h b/include/util/dir_iterator.h
index 66c13f3..77849e7 100644
--- a/include/util/dir_iterator.h
+++ b/include/util/dir_iterator.h
@@ -23,8 +23,12 @@ typedef struct {
typedef struct dir_iterator_t {
sqfs_object_t obj;
+ sqfs_u64 dev;
+
int (*next)(struct dir_iterator_t *it,
dir_entry_t **out);
+
+ int (*read_link)(struct dir_iterator_t *it, char **out);
} dir_iterator_t;
dir_iterator_t *dir_iterator_create(const char *path);