blob: 7489eefa1f2fe2d4b7056fd6403685190cc1a101 [file] [log] [blame]
Joao Marcos Costac5100612020-07-30 15:33:47 +02001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020 Bootlin
4 *
5 * Author: Joao Marcos Costa <joaomarcos.costa@bootlin.com>
6 *
7 * squashfs.h: SquashFS filesystem implementation.
8 */
9
10#ifndef _SQFS_H_
11#define _SQFS_H_
12
13struct disk_partition;
14
15int sqfs_opendir(const char *filename, struct fs_dir_stream **dirsp);
16int sqfs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
17int sqfs_probe(struct blk_desc *fs_dev_desc,
18 struct disk_partition *fs_partition);
19int sqfs_read(const char *filename, void *buf, loff_t offset,
20 loff_t len, loff_t *actread);
21int sqfs_size(const char *filename, loff_t *size);
Richard Genouddd4866b2020-11-03 12:11:26 +010022int sqfs_exists(const char *filename);
Joao Marcos Costac5100612020-07-30 15:33:47 +020023void sqfs_close(void);
24void sqfs_closedir(struct fs_dir_stream *dirs);
25
26#endif /* SQFS_H */