diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-05-15 19:35:45 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2023-05-16 16:54:21 +0200 |
commit | f5377528d4897e42fafe6c88ce550c956b0d85be (patch) | |
tree | cf0f6d19971484051dbc5c27839b32506b8e2634 /lib/io/src/unix | |
parent | 69cf28db0dfa175884c9c41fc3f329b051e0a9c5 (diff) |
libio: add xattr query interface to dir_iterator_t
Again, with a dummy implementation for Unix and Windows backends.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/src/unix')
-rw-r--r-- | lib/io/src/unix/dir_iterator.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/io/src/unix/dir_iterator.c b/lib/io/src/unix/dir_iterator.c index d6a7454..fb7edae 100644 --- a/lib/io/src/unix/dir_iterator.c +++ b/lib/io/src/unix/dir_iterator.c @@ -137,6 +137,13 @@ static int dir_open_file_ro(dir_iterator_t *it, istream_t **out) return SQFS_ERROR_UNSUPPORTED; } +static int dir_read_xattr(dir_iterator_t *it, dir_entry_xattr_t **out) +{ + (void)it; + *out = NULL; + return 0; +} + static int dir_open_subdir(dir_iterator_t *base, dir_iterator_t **out) { const unix_dir_iterator_t *it = (const unix_dir_iterator_t *)base; @@ -178,6 +185,7 @@ static int dir_open_subdir(dir_iterator_t *base, dir_iterator_t **out) ((dir_iterator_t *)sub)->open_subdir = dir_open_subdir; ((dir_iterator_t *)sub)->ignore_subdir = dir_ignore_subdir; ((dir_iterator_t *)sub)->open_file_ro = dir_open_file_ro; + ((dir_iterator_t *)sub)->read_xattr = dir_read_xattr; *out = (dir_iterator_t *)sub; return 0; @@ -219,6 +227,7 @@ dir_iterator_t *dir_iterator_create(const char *path) ((dir_iterator_t *)it)->open_subdir = dir_open_subdir; ((dir_iterator_t *)it)->ignore_subdir = dir_ignore_subdir; ((dir_iterator_t *)it)->open_file_ro = dir_open_file_ro; + ((dir_iterator_t *)it)->read_xattr = dir_read_xattr; return (dir_iterator_t *)it; } |