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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sqfs/meta_reader.h b/include/sqfs/meta_reader.h
index 75071e7..ab9f46d 100644
--- a/include/sqfs/meta_reader.h
+++ b/include/sqfs/meta_reader.h
@@ -14,6 +14,10 @@
typedef struct meta_reader_t meta_reader_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Create a meta data reader using a given compressor to extract data.
Internally prints error message to stderr on failure.
@@ -35,4 +39,8 @@ void meta_reader_get_position(meta_reader_t *m, uint64_t *block_start,
/* Returns 0 on success. Internally prints to stderr on failure */
int meta_reader_read(meta_reader_t *m, void *data, size_t size);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* META_READER_H */