| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
#include "import-common.h" |
| 6 |
#include "import-util.h" |
| 7 |
|
| 8 |
typedef struct RawPull RawPull; |
| 9 |
|
| 10 |
typedef void (*RawPullFinished)(RawPull *p, int error, void *userdata); |
| 11 |
|
| 12 |
int raw_pull_new(RawPull **ret, sd_event *event, const char *image_root, RawPullFinished on_finished, void *userdata); |
| 13 |
RawPull* raw_pull_unref(RawPull *p); |
| 14 |
|
| 15 |
DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref); |
| 16 |
|
| 17 |
int raw_pull_start(RawPull *p, const char *url, const char *local, uint64_t offset, uint64_t size_max, ImportFlags flags, ImportVerify verify, const struct iovec *checksum); |