]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
56ebfaf1 LP |
2 | #pragma once |
3 | ||
56ebfaf1 | 4 | #include "sd-event.h" |
71d35b6b | 5 | |
0100b6e1 | 6 | #include "import-util.h" |
71d35b6b | 7 | #include "macro.h" |
56ebfaf1 | 8 | |
dc2c282b | 9 | typedef struct TarPull TarPull; |
56ebfaf1 | 10 | |
dc2c282b | 11 | typedef void (*TarPullFinished)(TarPull *pull, int error, void *userdata); |
56ebfaf1 | 12 | |
dc2c282b LP |
13 | int tar_pull_new(TarPull **pull, sd_event *event, const char *image_root, TarPullFinished on_finished, void *userdata); |
14 | TarPull* tar_pull_unref(TarPull *pull); | |
56ebfaf1 | 15 | |
dc2c282b | 16 | DEFINE_TRIVIAL_CLEANUP_FUNC(TarPull*, tar_pull_unref); |
56ebfaf1 | 17 | |
9854730b | 18 | int tar_pull_start(TarPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings); |