diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-21 13:43:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-21 13:44:29 +0100 |
commit | 8af3cf74df03f7528f9e2605ec7896a5daf0f711 (patch) | |
tree | ac5a1c8c4d1997a45b5967a796373bb877bd6a54 /src/import/import-job.h | |
parent | ccf23ad5faf228d450d263d7291156a948b61af2 (diff) |
import: support downloading bzip2-encoded images
This way, we can import CoreOS images unmodified.
Diffstat (limited to 'src/import/import-job.h')
-rw-r--r-- | src/import/import-job.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/import/import-job.h b/src/import/import-job.h index a9b58e6339..b10b0ec0d9 100644 --- a/src/import/import-job.h +++ b/src/import/import-job.h @@ -23,6 +23,7 @@ #include <lzma.h> #include <zlib.h> +#include <bzlib.h> #include <gcrypt.h> #include "macro.h" @@ -49,6 +50,7 @@ typedef enum ImportJobCompression { IMPORT_JOB_UNCOMPRESSED, IMPORT_JOB_XZ, IMPORT_JOB_GZIP, + IMPORT_JOB_BZIP2, _IMPORT_JOB_COMPRESSION_MAX, _IMPORT_JOB_COMPRESSION_INVALID = -1, } ImportJobCompression; @@ -89,6 +91,7 @@ struct ImportJob { ImportJobCompression compressed; lzma_stream xz; z_stream gzip; + bz_stream bzip2; unsigned progress_percent; usec_t start_usec; |