]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/import/pull-raw.h
ci: re-enable uefi secure boot
[thirdparty/systemd.git] / src / import / pull-raw.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
0d6e763b
LP
2#pragma once
3
9412e9e9
DDM
4#include "forward.h"
5#include "import-common.h"
8f695058 6#include "import-util.h"
90199220 7
dc2c282b 8typedef struct RawPull RawPull;
90199220 9
dc2c282b 10typedef void (*RawPullFinished)(RawPull *pull, int error, void *userdata);
90199220 11
dc2c282b
LP
12int raw_pull_new(RawPull **pull, sd_event *event, const char *image_root, RawPullFinished on_finished, void *userdata);
13RawPull* raw_pull_unref(RawPull *pull);
90199220 14
dc2c282b 15DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref);
90199220 16
83d74112 17int 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);