diff options
author | Timo Teräs <timo.teras@iki.fi> | 2015-03-11 16:10:33 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2015-03-11 16:10:33 +0200 |
commit | 8d1ec4c5bc031da9e2441a63df965757d74d5c33 (patch) | |
tree | 2923c2acdb3ab857570012a9716330ba1a4ac23a /src/apk_io.h | |
parent | da6e455f7001def03300a398dbbc02bb03c7f4b9 (diff) | |
download | apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.tar.gz apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.tar.bz2 apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.tar.xz apk-tools-8d1ec4c5bc031da9e2441a63df965757d74d5c33.zip |
calculate and store checksum of xattrs
ref #3027
Diffstat (limited to 'src/apk_io.h')
-rw-r--r-- | src/apk_io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk_io.h b/src/apk_io.h index 59a5d70..ee81851 100644 --- a/src/apk_io.h +++ b/src/apk_io.h @@ -45,6 +45,7 @@ struct apk_file_info { time_t mtime; dev_t device; struct apk_checksum csum; + struct apk_checksum xattr_csum; struct apk_xattr_array *xattrs; }; @@ -150,6 +151,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_fileinfo_get(int atfd, const char *filename, unsigned int flags, struct apk_file_info *fi); +void apk_fileinfo_hash_xattr(struct apk_file_info *fi); void apk_fileinfo_free(struct apk_file_info *fi); typedef int apk_dir_file_cb(void *ctx, int dirfd, const char *entry); |