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