diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 13:50:05 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 15:48:42 +0200 |
commit | 23a3f10ab62abadf5adcfb9540f2180275ab5b0c (patch) | |
tree | cfe537d4359de7dd3486898dad70c40761947680 /include/xattr_reader.h | |
parent | 7073f002b54c690ffa17d9f736a4417485d3c6d6 (diff) |
Add xattr reader implementation to recover xattrs from squashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/xattr_reader.h')
-rw-r--r-- | include/xattr_reader.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/xattr_reader.h b/include/xattr_reader.h new file mode 100644 index 0000000..a71f0f0 --- /dev/null +++ b/include/xattr_reader.h @@ -0,0 +1,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 "squashfs.h" +#include "compress.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 */ |