chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
import: support downloading bzip2-encoded images
[elogind.git]
/
src
/
import
/
import-job.h
diff --git
a/src/import/import-job.h
b/src/import/import-job.h
index a9b58e6339ec6fe8e6cee222fbe33ebed5d7fac1..b10b0ec0d9d767f2c659f3f0278e2d2d394cdd26 100644
(file)
--- a/
src/import/import-job.h
+++ b/
src/import/import-job.h
@@
-23,6
+23,7
@@
#include <lzma.h>
#include <zlib.h>
#include <lzma.h>
#include <zlib.h>
+#include <bzlib.h>
#include <gcrypt.h>
#include "macro.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_UNCOMPRESSED,
IMPORT_JOB_XZ,
IMPORT_JOB_GZIP,
+ IMPORT_JOB_BZIP2,
_IMPORT_JOB_COMPRESSION_MAX,
_IMPORT_JOB_COMPRESSION_INVALID = -1,
} ImportJobCompression;
_IMPORT_JOB_COMPRESSION_MAX,
_IMPORT_JOB_COMPRESSION_INVALID = -1,
} ImportJobCompression;
@@
-89,6
+91,7
@@
struct ImportJob {
ImportJobCompression compressed;
lzma_stream xz;
z_stream gzip;
ImportJobCompression compressed;
lzma_stream xz;
z_stream gzip;
+ bz_stream bzip2;
unsigned progress_percent;
usec_t start_usec;
unsigned progress_percent;
usec_t start_usec;