summaryrefslogtreecommitdiff
path: root/include/sqfs/dir.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-01 17:08:40 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-01 17:08:40 +0200
commit2e28c45601a57b1d23e9cad33d2bdcc59e8a3f4f (patch)
tree346da06f09e147197a805fa2494ca1633531d8c9 /include/sqfs/dir.h
parent4ee671b63b18701a29cf9f119e2dc26a055c69c5 (diff)
Add C++ gurads to publicly exported functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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 */