summaryrefslogtreecommitdiff
path: root/include/xattr_reader.h
blob: 9cacd358f735aeca0c87a10e072839b6ddf205d2 (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
/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
 * xattr_reader.h
 *
 * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
 */
#ifndef XATTR_READER_H
#define XATTR_READER_H

#include "config.h"

#include "sqfs/compress.h"
#include "sqfs/data.h"
#include "fstree.h"

typedef struct xattr_reader_t xattr_reader_t;

void xattr_reader_destroy(xattr_reader_t *xr);

xattr_reader_t *xattr_reader_create(int sqfsfd, sqfs_super_t *super,
				    compressor_t *cmp);

int xattr_reader_restore_node(xattr_reader_t *xr, fstree_t *fs,
			      tree_node_t *node, uint32_t xattr);

#endif /* XATTR_READER_H */