aboutsummaryrefslogtreecommitdiff
path: root/include/sqfs/xattr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sqfs/xattr.h')
-rw-r--r--include/sqfs/xattr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sqfs/xattr.h b/include/sqfs/xattr.h
index 3d5da39..2e48a4e 100644
--- a/include/sqfs/xattr.h
+++ b/include/sqfs/xattr.h
@@ -45,6 +45,10 @@ typedef struct {
uint32_t unused;
} sqfs_xattr_id_table_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Get a prefix string from the ID or NULL if unknown */
const char *sqfs_get_xattr_prefix(E_SQFS_XATTR_TYPE id);
@@ -54,4 +58,8 @@ int sqfs_get_xattr_prefix_id(const char *key);
/* Check if a given xattr key can be encoded in squashfs at all. */
bool sqfs_has_xattr(const char *key);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SQFS_XATTR_H */