diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-04 18:53:37 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-05 00:59:37 +0100 |
commit | 3e2cda698f05d7290a8b9444d2c7d5c2599b2a27 (patch) | |
tree | fcb78406b6fdf2745f09fe4d606cb291deba2dfe /src/import/pull-job.h | |
parent | dc2c282b6aac820a3c27d8a7a68c0386300db663 (diff) |
import: split out compression logic, so that we can share it with between import and pull calls
Diffstat (limited to 'src/import/pull-job.h')
-rw-r--r-- | src/import/pull-job.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/import/pull-job.h b/src/import/pull-job.h index b807bd1b41..3239aeac20 100644 --- a/src/import/pull-job.h +++ b/src/import/pull-job.h @@ -21,13 +21,11 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>. ***/ -#include <lzma.h> -#include <zlib.h> -#include <bzlib.h> #include <gcrypt.h> #include "macro.h" #include "curl-util.h" +#include "import-compress.h" typedef struct PullJob PullJob; @@ -92,10 +90,7 @@ struct PullJob { usec_t mtime; - PullJobCompression compressed; - lzma_stream xz; - z_stream gzip; - bz_stream bzip2; + ImportCompress compress; unsigned progress_percent; usec_t start_usec; |