From 9a97a9a4fe224bcf53ad23af31bca67bbb71a824 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 15 May 2023 20:11:56 +0200 Subject: libtar: replace tar_xattr_t with dir_entry_xattr_t struct Signed-off-by: David Oberhollenzer --- include/io/xattr.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'include/io') 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 */ -- cgit v1.2.3