aboutsummaryrefslogtreecommitdiffstats
path: root/src/apk_io.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-03-10 14:38:06 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-03-10 14:38:06 +0200
commitbe8e133c0b5ba0980d0debbf26b76a0b866689e7 (patch)
treee4c6a76148b78b139f6e3731b89fb73ae3a57b2a /src/apk_io.h
parent255fd81d79c49f6e5dbdb0df371d8ec7de600917 (diff)
downloadaports-be8e133c0b5ba0980d0debbf26b76a0b866689e7.tar.bz2
aports-be8e133c0b5ba0980d0debbf26b76a0b866689e7.tar.xz
extract xattrs from packages
ref #3027
Diffstat (limited to 'src/apk_io.h')
-rw-r--r--src/apk_io.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h
index 2e1c319b04..3e5e63f5df 100644
--- a/src/apk_io.h
+++ b/src/apk_io.h
@@ -27,6 +27,12 @@ struct apk_id_cache {
struct apk_hash gid_cache;
};
+struct apk_xattr {
+ const char *name;
+ apk_blob_t value;
+};
+APK_ARRAY(apk_xattr_array, struct apk_xattr);
+
struct apk_file_info {
char *name;
char *link_target;
@@ -39,6 +45,7 @@ struct apk_file_info {
time_t mtime;
dev_t device;
struct apk_checksum csum;
+ struct apk_xattr_array *xattrs;
};
struct apk_istream {
@@ -143,6 +150,7 @@ int apk_blob_to_file(int atfd, const char *file, apk_blob_t b, unsigned int flag
#define APK_FI_NOFOLLOW 0x80000000
int apk_file_get_info(int atfd, const char *filename, unsigned int flags,
struct apk_file_info *fi);
+void apk_file_info_free(struct apk_file_info *fi);
typedef int apk_dir_file_cb(void *ctx, int dirfd, const char *entry);
int apk_dir_foreach_file(int dirfd, apk_dir_file_cb cb, void *ctx);