aboutsummaryrefslogtreecommitdiff
path: root/include/io/dir_iterator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/io/dir_iterator.h')
-rw-r--r--include/io/dir_iterator.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/io/dir_iterator.h b/include/io/dir_iterator.h
index 0de135a..377f07e 100644
--- a/include/io/dir_iterator.h
+++ b/include/io/dir_iterator.h
@@ -9,6 +9,7 @@
#include "sqfs/predef.h"
#include "io/istream.h"
+#include "io/xattr.h"
typedef enum {
DIR_ENTRY_FLAG_MOUNT_POINT = 0x0001,
@@ -148,6 +149,16 @@ typedef struct dir_iterator_t {
* @return Zero on success, negative @ref SQFS_ERROR value on failure.
*/
int (*open_file_ro)(struct dir_iterator_t *it, istream_t **out);
+
+ /**
+ * @brief Read extended attributes associated with the current entry
+ *
+ * @param it A pointer to the iterator itself.
+ * @param out Returns a linked list of xattr entries.
+ *
+ * @return Zero on success, negative @ref SQFS_ERROR value on failure.
+ */
+ int (*read_xattr)(struct dir_iterator_t *it, dir_entry_xattr_t **out);
} dir_iterator_t;
enum {