summaryrefslogtreecommitdiff
path: root/include/sqfs/inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sqfs/inode.h')
-rw-r--r--include/sqfs/inode.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sqfs/inode.h b/include/sqfs/inode.h
index 24889b8..6fb56b6 100644
--- a/include/sqfs/inode.h
+++ b/include/sqfs/inode.h
@@ -130,6 +130,9 @@ typedef struct {
uint8_t extra[];
} sqfs_inode_generic_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Inode can be freed with a single free() call.
The function internally prints error message to stderr on failure. */
@@ -138,4 +141,8 @@ sqfs_inode_generic_t *meta_reader_read_inode(meta_reader_t *ir,
uint64_t block_start,
size_t offset);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SQFS_INODE_H */