Huang Jianan | 830613f | 2022-02-26 15:05:47 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _EROFS_H_ |
| 3 | #define _EROFS_H_ |
| 4 | |
| 5 | struct disk_partition; |
| 6 | |
| 7 | int erofs_opendir(const char *filename, struct fs_dir_stream **dirsp); |
| 8 | int erofs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp); |
| 9 | int erofs_probe(struct blk_desc *fs_dev_desc, |
| 10 | struct disk_partition *fs_partition); |
| 11 | int erofs_read(const char *filename, void *buf, loff_t offset, |
| 12 | loff_t len, loff_t *actread); |
| 13 | int erofs_size(const char *filename, loff_t *size); |
| 14 | int erofs_exists(const char *filename); |
| 15 | void erofs_close(void); |
| 16 | void erofs_closedir(struct fs_dir_stream *dirs); |
| 17 | int erofs_uuid(char *uuid_str); |
| 18 | |
| 19 | #endif /* _EROFS_H */ |