1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2015 Lennart Poettering
12 #include "import-util.h"
15 typedef struct TarPull TarPull
;
17 typedef void (*TarPullFinished
)(TarPull
*pull
, int error
, void *userdata
);
19 int tar_pull_new(TarPull
**pull
, sd_event
*event
, const char *image_root
, TarPullFinished on_finished
, void *userdata
);
20 TarPull
* tar_pull_unref(TarPull
*pull
);
22 DEFINE_TRIVIAL_CLEANUP_FUNC(TarPull
*, tar_pull_unref
);
24 int tar_pull_start(TarPull
*pull
, const char *url
, const char *local
, bool force_local
, ImportVerify verify
, bool settings
);