Debian Codegraph @

src/import/pull-tar.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "shared-forward.h"
5 #include "import-common.h"
6 #include "import-util.h"
7
8 typedef struct TarPull TarPull;
9
10 typedef void (*TarPullFinished)(TarPull *p, int error, void *userdata);
11
12 int tar_pull_new(TarPull **ret, sd_event *event, const char *image_root, TarPullFinished on_finished, void *userdata);
13 TarPull* tar_pull_unref(TarPull *p);
14
15 DEFINE_TRIVIAL_CLEANUP_FUNC(TarPull*, tar_pull_unref);
16
17 int tar_pull_start(TarPull *p, const char *url, const char *local, ImportFlags flags, ImportVerify verify, const struct iovec *checksum);