summaryrefslogtreecommitdiff
path: root/src/import/pull-dkr.h
diff options
context:
space:
mode:
authorPavel Odvody <podvody@redhat.com>2015-05-19 16:30:33 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-19 18:21:56 +0200
commit2c4fb0eab8fd05d6375fa3b78b5e2ee5eb93bf09 (patch)
tree19892456f97f2267c0a974fd0f5796b1a2674b17 /src/import/pull-dkr.h
parent7037d506b3c19b617531a6295c38896a03d17c1e (diff)
import/pull-dkr: V2 image specification and manifest support
The maximum number of layers changed to 127, as in Dkr.
Diffstat (limited to 'src/import/pull-dkr.h')
-rw-r--r--src/import/pull-dkr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/pull-dkr.h b/src/import/pull-dkr.h
index 4c4b10c7ac..33d18cb394 100644
--- a/src/import/pull-dkr.h
+++ b/src/import/pull-dkr.h
@@ -24,6 +24,7 @@
#include "sd-event.h"
#include "util.h"
+typedef enum { DKR_PULL_V1, DKR_PULL_V2 } DkrPullVersion;
typedef struct DkrPull DkrPull;
typedef void (*DkrPullFinished)(DkrPull *pull, int error, void *userdata);
@@ -33,4 +34,4 @@ DkrPull* dkr_pull_unref(DkrPull *pull);
DEFINE_TRIVIAL_CLEANUP_FUNC(DkrPull*, dkr_pull_unref);
-int dkr_pull_start(DkrPull *pull, const char *name, const char *tag, const char *local, bool force_local);
+int dkr_pull_start(DkrPull *pull, const char *name, const char *tag, const char *local, bool force_local, DkrPullVersion version);