From 73d342861a03c38528ca5f97cdd479b4fdb5b3fd Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 21 Apr 2023 19:53:57 +0200 Subject: libutil: Add a method to the directory iterator to open a sub directory This is also the reason we need to lug around the original directory path on Windows. Signed-off-by: David Oberhollenzer --- include/util/dir_iterator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/util') diff --git a/include/util/dir_iterator.h b/include/util/dir_iterator.h index 77849e7..4d7607f 100644 --- a/include/util/dir_iterator.h +++ b/include/util/dir_iterator.h @@ -29,6 +29,9 @@ typedef struct dir_iterator_t { dir_entry_t **out); int (*read_link)(struct dir_iterator_t *it, char **out); + + int (*open_subdir)(struct dir_iterator_t *it, + struct dir_iterator_t **out); } dir_iterator_t; dir_iterator_t *dir_iterator_create(const char *path); -- cgit v1.2.3