]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/import/pull-tar.h
Merge pull request #11241 from bengal/lldp-802-3-subtypes
[thirdparty/systemd.git] / src / import / pull-tar.h
CommitLineData
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 9typedef struct TarPull TarPull;
56ebfaf1 10
dc2c282b 11typedef void (*TarPullFinished)(TarPull *pull, int error, void *userdata);
56ebfaf1 12
dc2c282b
LP
13int tar_pull_new(TarPull **pull, sd_event *event, const char *image_root, TarPullFinished on_finished, void *userdata);
14TarPull* tar_pull_unref(TarPull *pull);
56ebfaf1 15
dc2c282b 16DEFINE_TRIVIAL_CLEANUP_FUNC(TarPull*, tar_pull_unref);
56ebfaf1 17
9854730b 18int tar_pull_start(TarPull *pull, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings);