1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020 Bootlin
5 * Author: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
7 * squashfs.h: SquashFS filesystem implementation.
13 struct disk_partition;
15 int sqfs_opendir(const char *filename, struct fs_dir_stream **dirsp);
16 int sqfs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
17 int sqfs_probe(struct blk_desc *fs_dev_desc,
18 struct disk_partition *fs_partition);
19 int sqfs_read(const char *filename, void *buf, loff_t offset,
20 loff_t len, loff_t *actread);
21 int sqfs_size(const char *filename, loff_t *size);
22 int sqfs_exists(const char *filename);
23 void sqfs_close(void);
24 void sqfs_closedir(struct fs_dir_stream *dirs);