summaryrefslogtreecommitdiff
path: root/include/squashfs.h
blob: 83ed8a494428307b3f4f40ac0a8871add84e29f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2020 Bootlin
 *
 * Author: Joao Marcos Costa <[email protected]>
 *
 * squashfs.h: SquashFS filesystem implementation.
 */

#ifndef _SQFS_H_
#define _SQFS_H_

#include <fs.h>
#include <blk.h>
#include <part.h>
#include <linux/types.h>

int sqfs_opendir(const char *filename, struct fs_dir_stream **dirsp);
int sqfs_readdir(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
int sqfs_probe(struct blk_desc *fs_dev_desc,
	       struct disk_partition *fs_partition);
int sqfs_read(const char *filename, void *buf, loff_t offset,
	      loff_t len, loff_t *actread);
int sqfs_size(const char *filename, loff_t *size);
int sqfs_exists(const char *filename);
void sqfs_close(void);
void sqfs_closedir(struct fs_dir_stream *dirs);

#endif /* SQFS_H  */