summaryrefslogtreecommitdiff
path: root/include/sqfs/dir.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sqfs/dir.h')
-rw-r--r--include/sqfs/dir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sqfs/dir.h b/include/sqfs/dir.h
index 6e47fef..5c822f1 100644
--- a/include/sqfs/dir.h
+++ b/include/sqfs/dir.h
@@ -36,6 +36,10 @@ typedef struct {
uint8_t name[];
} sqfs_dir_index_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* 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);
@@ -43,4 +47,8 @@ int meta_reader_read_dir_header(meta_reader_t *m, sqfs_dir_header_t *hdr);
The function internally prints to stderr on failure */
sqfs_dir_entry_t *meta_reader_read_dir_ent(meta_reader_t *m);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SQFS_DIR_H */