]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/import/pull-raw.h
Merge pull request #8417 from brauner/2018-03-09/add_bind_mount_fallback_to_private_d...
[thirdparty/systemd.git] / src / import / pull-raw.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2014 Lennart Poettering
8 ***/
9
10 #include "sd-event.h"
11
12 #include "import-util.h"
13 #include "macro.h"
14
15 typedef struct RawPull RawPull;
16
17 typedef void (*RawPullFinished)(RawPull *pull, int error, void *userdata);
18
19 int raw_pull_new(RawPull **pull, sd_event *event, const char *image_root, RawPullFinished on_finished, void *userdata);
20 RawPull* raw_pull_unref(RawPull *pull);
21
22 DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref);
23
24 int raw_pull_start(RawPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings, bool roothash);