]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
0d6e763b LP |
2 | #pragma once |
3 | ||
90199220 | 4 | #include "sd-event.h" |
71d35b6b | 5 | |
8f695058 | 6 | #include "import-util.h" |
71d35b6b | 7 | #include "macro.h" |
90199220 | 8 | |
dc2c282b | 9 | typedef struct RawPull RawPull; |
90199220 | 10 | |
dc2c282b | 11 | typedef void (*RawPullFinished)(RawPull *pull, int error, void *userdata); |
90199220 | 12 | |
dc2c282b LP |
13 | int raw_pull_new(RawPull **pull, sd_event *event, const char *image_root, RawPullFinished on_finished, void *userdata); |
14 | RawPull* raw_pull_unref(RawPull *pull); | |
90199220 | 15 | |
dc2c282b | 16 | DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref); |
90199220 | 17 | |
91359193 | 18 | int raw_pull_start(RawPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings, bool roothash); |