Debian Codegraph @

src/import/export-tar.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include "compress.h"
5 #include "import-common.h"
6 #include "shared-forward.h"
7
8 typedef struct TarExport TarExport;
9
10 typedef void (*TarExportFinished)(TarExport *e, int error, void *userdata);
11
12 int tar_export_new(TarExport **ret, sd_event *event, TarExportFinished on_finished, void *userdata);
13 TarExport* tar_export_unref(TarExport *e);
14
15 DEFINE_TRIVIAL_CLEANUP_FUNC(TarExport*, tar_export_unref);
16
17 int tar_export_start(TarExport *e, const char *path, int fd, Compression compress, ImportFlags flags);