aboutsummaryrefslogtreecommitdiff
path: root/include/io
diff options
context:
space:
mode:
Diffstat (limited to 'include/io')
-rw-r--r--include/io/xattr.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/io/xattr.h b/include/io/xattr.h
index d912fad..cf35bca 100644
--- a/include/io/xattr.h
+++ b/include/io/xattr.h
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-3.0-or-later */
+/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
* xattr.h
*
@@ -7,6 +7,8 @@
#ifndef IO_XATTR_H
#define IO_XATTR_H
+#include "sqfs/predef.h"
+
typedef struct dir_entry_xattr_t {
struct dir_entry_xattr_t *next;
char *key;
@@ -15,4 +17,17 @@ typedef struct dir_entry_xattr_t {
char data[];
} dir_entry_xattr_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+dir_entry_xattr_t *dir_entry_xattr_create(const char *key, const sqfs_u8 *value,
+ size_t value_len);
+
+void dir_entry_xattr_list_free(dir_entry_xattr_t *list);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif /* IO_XATTR_H */