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 TarPull TarPull; 10 : 11 : typedef void (*TarPullFinished)(TarPull *pull, int error, void *userdata); 12 : 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); 15 : 16 0 : DEFINE_TRIVIAL_CLEANUP_FUNC(TarPull*, tar_pull_unref); 17 : 18 : int tar_pull_start(TarPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings);