Add support for xz compressed files

This commit is contained in:
Jukka Ojanen
2021-08-25 16:56:55 +03:00
parent 4e224dec82
commit 3cacbe0e1f
3 changed files with 349 additions and 94 deletions
+3
View File
@@ -1067,6 +1067,8 @@ typedef struct link_speed
// file handling
typedef struct xzfile xzfile_t;
typedef struct hc_fp
{
int fd;
@@ -1074,6 +1076,7 @@ typedef struct hc_fp
FILE *pfp; // plain fp
gzFile gfp; // gzip fp
unzFile ufp; // zip fp
xzfile_t *xfp; // xz fp
int bom_size;