1.1 --- a/libe2access/include/e2access/image.h Sun Nov 28 22:18:33 2021 +0100
1.2 +++ b/libe2access/include/e2access/image.h Tue Dec 28 01:37:59 2021 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Filesystem image access functions.
1.6 *
1.7 - * Copyright (C) 2019 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2019, 2021 Paul Boddie <paul@boddie.org.uk>
1.9 *
1.10 * This program is free software; you can redistribute it and/or
1.11 * modify it under the terms of the GNU General Public License as
1.12 @@ -23,8 +23,7 @@
1.13 #define __IMAGE_H__
1.14
1.15 #include <ext2fs/ext2fs.h>
1.16 -
1.17 -
1.18 +#include <sys/stat.h>
1.19
1.20 #ifdef __cplusplus
1.21 extern "C" {
1.22 @@ -46,6 +45,11 @@
1.23 errcode_t image_inode(ext2_filsys fs, const char *pathname,
1.24 struct ext2_inode *inode);
1.25
1.26 +errcode_t image_list_dir(ext2_filsys fs, const char *path,
1.27 + int (*proc)(struct ext2_dir_entry *, int, int, char *,
1.28 + void *),
1.29 + void *data);
1.30 +
1.31 errcode_t image_make_dir(ext2_filsys fs, ext2_ino_t ino_dir,
1.32 const char *basename, __u16 mode,
1.33 __u16 uid, __u16 gid, ext2_ino_t *ino);