]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/import/pull-raw.h
blockdev-util: "partscan" sysattr now directly shows the enabled state
[thirdparty/systemd.git] / src / import / pull-raw.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "sd-event.h"
5
6 #include "import-util.h"
7 #include "macro.h"
8 #include "pull-common.h"
9
10 typedef struct RawPull RawPull;
11
12 typedef void (*RawPullFinished)(RawPull *pull, int error, void *userdata);
13
14 int raw_pull_new(RawPull **pull, sd_event *event, const char *image_root, RawPullFinished on_finished, void *userdata);
15 RawPull* raw_pull_unref(RawPull *pull);
16
17 DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref);
18
19 int raw_pull_start(RawPull *pull, const char *url, const char *local, uint64_t offset, uint64_t size_max, ImportFlags flags, ImportVerify verify, const char *checksum);