diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-21 20:03:57 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-21 20:05:31 +0100 |
commit | ff2670ad11a1a29d483b7a246c95b159ddc1137c (patch) | |
tree | 2e040aa8272705fe4102d712f4e96480728b49fe /src/import/import-job.h | |
parent | 8b71fce8c2bb0e0a8c2317a34f8f114ff10e6aa6 (diff) |
import: simplify dkr importer, by making use of generic import-job logic, used by the raw and tar importers
This gets us progress output as well xz/bzip2 support.
Diffstat (limited to 'src/import/import-job.h')
-rw-r--r-- | src/import/import-job.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/import/import-job.h b/src/import/import-job.h index b10b0ec0d9..57090092ce 100644 --- a/src/import/import-job.h +++ b/src/import/import-job.h @@ -33,6 +33,7 @@ typedef struct ImportJob ImportJob; typedef void (*ImportJobFinished)(ImportJob *job); typedef int (*ImportJobOpenDisk)(ImportJob *job); +typedef int (*ImportJobHeader)(ImportJob*job, const char *header, size_t sz); typedef enum ImportJobState { IMPORT_JOB_INIT, @@ -64,6 +65,7 @@ struct ImportJob { void *userdata; ImportJobFinished on_finished; ImportJobOpenDisk on_open_disk; + ImportJobHeader on_header; CurlGlue *glue; CURL *curl; |