summaryrefslogtreecommitdiff
path: root/include/sqfs/meta_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sqfs/meta_reader.h')
-rw-r--r--include/sqfs/meta_reader.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/include/sqfs/meta_reader.h b/include/sqfs/meta_reader.h
index ab9f46d..1517e67 100644
--- a/include/sqfs/meta_reader.h
+++ b/include/sqfs/meta_reader.h
@@ -4,15 +4,15 @@
*
* Copyright (C) 2019 David Oberhollenzer <goliath@infraroot.at>
*/
-#ifndef META_READER_H
-#define META_READER_H
+#ifndef SQFS_META_READER_H
+#define SQFS_META_READER_H
#include "config.h"
#include "sqfs/compress.h"
#include "sqfs/data.h"
-typedef struct meta_reader_t meta_reader_t;
+typedef struct sqfs_meta_reader_t sqfs_meta_reader_t;
#ifdef __cplusplus
extern "C" {
@@ -24,23 +24,24 @@ extern "C" {
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);
+sqfs_meta_reader_t *sqfs_meta_reader_create(int fd, compressor_t *cmp,
+ uint64_t start, uint64_t limit);
-void meta_reader_destroy(meta_reader_t *m);
+void sqfs_meta_reader_destroy(sqfs_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);
+int sqfs_meta_reader_seek(sqfs_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);
+void sqfs_meta_reader_get_position(sqfs_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);
+int sqfs_meta_reader_read(sqfs_meta_reader_t *m, void *data, size_t size);
#ifdef __cplusplus
}
#endif
-#endif /* META_READER_H */
+#endif /* SQFS_META_READER_H */