1.1 --- a/libfsserver/include/fsserver/ext2_file_operations.h Sun Aug 29 23:51:48 2021 +0200
1.2 +++ b/libfsserver/include/fsserver/ext2_file_operations.h Tue Aug 31 23:51:13 2021 +0200
1.3 @@ -30,6 +30,19 @@
1.4
1.5
1.6
1.7 +/* Directory iteration helper type. */
1.8 +
1.9 +class Ext2FileOperations;
1.10 +
1.11 +struct Ext2DirectoryIteration
1.12 +{
1.13 + Ext2FileOperations *ops;
1.14 + int (*func)(struct ext2_dir_entry *, int, int, char *, void *);
1.15 + void *priv_data;
1.16 +};
1.17 +
1.18 +
1.19 +
1.20 /* An Ext2 file operations collection. */
1.21
1.22 class Ext2FileOperations
1.23 @@ -70,6 +83,12 @@
1.24 void *priv_data);
1.25
1.26 long read_inode(ext2_ino_t ino_file, struct ext2_inode *inode);
1.27 +
1.28 + /* Callback method. */
1.29 +
1.30 + int directory_iterate_fn(struct ext2_dir_entry *dir_entry,
1.31 + int offset, int blocksize,
1.32 + char *buf, struct Ext2DirectoryIteration *priv_data);
1.33 };
1.34
1.35 // vim: tabstop=4 expandtab shiftwidth=4