summaryrefslogtreecommitdiff
path: root/src/import/pull-raw.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-01-15 23:18:54 +0100
committerLennart Poettering <lennart@poettering.net>2021-01-19 18:29:59 +0100
commit133b34f69a72dc90d4e336837d699245390c9f50 (patch)
treeeec3db1ef13f2c9b4576422116b877b325733a3c /src/import/pull-raw.h
parent6792cbbcf84b730f465decbeaf247c6b1ccf1c18 (diff)
downloadsystemd-133b34f69a72dc90d4e336837d699245390c9f50.tar.gz
import: optionally pull .verity + .roothash.p7s data when downloading
We already had support for downlading a .nspawn and a .roothash file, let's make the set complete, and also download .verity + roothash.p7s if it exists, as nspawn consumes that. Since there are now four kinds of additional resources to acquire, let's introduce a PullFlags flags value for this instead of separate 'bool' variables, it's just too many to always pass those around on the function parameter list.
Diffstat (limited to 'src/import/pull-raw.h')
-rw-r--r--src/import/pull-raw.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/import/pull-raw.h b/src/import/pull-raw.h
index e1d450d9df..985bda4762 100644
--- a/src/import/pull-raw.h
+++ b/src/import/pull-raw.h
@@ -5,6 +5,7 @@
#include "import-util.h"
#include "macro.h"
+#include "pull-common.h"
typedef struct RawPull RawPull;
@@ -15,4 +16,4 @@ RawPull* raw_pull_unref(RawPull *pull);
DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref);
-int raw_pull_start(RawPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings, bool roothash);
+int raw_pull_start(RawPull *pull, const char *url, const char *local, PullFlags flags, ImportVerify verify);