1.1 --- a/libe2access/include/e2access/image.h Fri Jan 14 01:10:35 2022 +0100
1.2 +++ b/libe2access/include/e2access/image.h Thu Jan 27 23:45:17 2022 +0100
1.3 @@ -1,7 +1,7 @@
1.4 /*
1.5 * Filesystem image access functions.
1.6 *
1.7 - * Copyright (C) 2019, 2021 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) 2019, 2021, 2022 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 @@ -33,6 +33,8 @@
1.13 const char *basename, __u16 mode,
1.14 __u16 uid, __u16 gid, ext2_ino_t *ino_file);
1.15
1.16 +int image_file_type(int mode);
1.17 +
1.18 errcode_t image_find_next(ext2_filsys fs, ext2_ino_t ino_dir,
1.19 const char **basename, char *buf, ext2_ino_t *ino);
1.20
1.21 @@ -64,6 +66,10 @@
1.22
1.23 errcode_t image_remove_by_inode(ext2_filsys fs, ext2_ino_t ino);
1.24
1.25 +errcode_t image_rename(ext2_filsys fs, ext2_ino_t source,
1.26 + ext2_ino_t source_parent, const char *source_basename,
1.27 + ext2_ino_t target_parent, const char *target_basename);
1.28 +
1.29 void image_set_metadata(struct ext2_inode *inode, int clean, __u16 mode,
1.30 __u16 uid, __u16 gid);
1.31