1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 #include "import-util.h"
9 typedef struct TarPull TarPull
;
11 typedef void (*TarPullFinished
)(TarPull
*pull
, int error
, void *userdata
);
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
);
16 DEFINE_TRIVIAL_CLEANUP_FUNC(TarPull
*, tar_pull_unref
);
18 int tar_pull_start(TarPull
*pull
, const char *url
, const char *local
, bool force_local
, ImportVerify verify
, bool settings
);