Line data Source code
1 : /* SPDX-License-Identifier: LGPL-2.1+ */ 2 : #pragma once 3 : 4 : #include "sd-event.h" 5 : 6 : #include "import-util.h" 7 : #include "macro.h" 8 : 9 : typedef struct RawPull RawPull; 10 : 11 : typedef void (*RawPullFinished)(RawPull *pull, int error, void *userdata); 12 : 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); 15 : 16 0 : DEFINE_TRIVIAL_CLEANUP_FUNC(RawPull*, raw_pull_unref); 17 : 18 : int raw_pull_start(RawPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings, bool roothash);