blob: b927bab2eb812f0a5430789dd3f3092b3e763eac (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/* SPDX-License-Identifier: GPL-3.0-or-later */
#ifndef RDSQUASHFS_H
#define RDSQUASHFS_H
#include "meta_reader.h"
#include "data_reader.h"
#include "highlevel.h"
#include "squashfs.h"
#include "compress.h"
#include "id_table.h"
#include "fstree.h"
#include "config.h"
#include "util.h"
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
enum UNPACK_FLAGS {
UNPACK_CHMOD = 0x01,
UNPACK_CHOWN = 0x02,
UNPACK_QUIET = 0x04,
};
typedef struct {
data_reader_t *data;
compressor_t *cmp;
int rdtree_flags;
int sqfsfd;
int flags;
} unsqfs_info_t;
void list_files(tree_node_t *node);
int restore_fstree(const char *rootdir, tree_node_t *root,
unsqfs_info_t *info);
void describe_tree(tree_node_t *root, const char *unpack_root);
#endif /* RDSQUASHFS_H */
|