aboutsummaryrefslogtreecommitdiff
path: root/include/meta_reader.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-01 14:35:03 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-01 14:35:03 +0200
commit9533dc84d7addf792db4f4702b6fc7d7ddd20e78 (patch)
tree1efcf0fbc9fa590ea7aa6e6ac74cd34f71355a3a /include/meta_reader.h
parent79c333899d318bf9b1eec3837833c7f0229d1906 (diff)
Install libsquashfs.so headers on the system in "sqfs" subdirectory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/meta_reader.h')
-rw-r--r--include/meta_reader.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/include/meta_reader.h b/include/meta_reader.h
deleted file mode 100644
index d5628af..0000000
--- a/include/meta_reader.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-/*
- * meta_reader.h
- *
- * Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
- */
-#ifndef META_READER_H
-#define META_READER_H
-
-#include "config.h"
-
-#include "compress.h"
-#include "squashfs.h"
-
-typedef struct meta_reader_t meta_reader_t;
-
-/* Create a meta data reader using a given compressor to extract data.
- Internally prints error message to stderr on failure.
-
- Start offset and limit can be specified to do bounds checking against
- a subregion of the filesystem image.
-*/
-meta_reader_t *meta_reader_create(int fd, compressor_t *cmp,
- uint64_t start, uint64_t limit);
-
-void meta_reader_destroy(meta_reader_t *m);
-
-/* Returns 0 on success. Internally prints to stderr on failure */
-int meta_reader_seek(meta_reader_t *m, uint64_t block_start,
- size_t offset);
-
-void meta_reader_get_position(meta_reader_t *m, uint64_t *block_start,
- size_t *offset);
-
-/* Returns 0 on success. Internally prints to stderr on failure */
-int meta_reader_read(meta_reader_t *m, void *data, size_t size);
-
-/* Inode can be freed with a single free() call.
- The function internally prints error message to stderr on failure. */
-sqfs_inode_generic_t *meta_reader_read_inode(meta_reader_t *ir,
- sqfs_super_t *super,
- uint64_t block_start,
- size_t offset);
-
-/* Returns 0 on success. Internally prints to stderr on failure */
-int meta_reader_read_dir_header(meta_reader_t *m, sqfs_dir_header_t *hdr);
-
-/* Entry can be freed with a single free() call.
- The function internally prints to stderr on failure */
-sqfs_dir_entry_t *meta_reader_read_dir_ent(meta_reader_t *m);
-
-#endif /* META_READER_H */