]>
Commit | Line | Data |
---|---|---|
53e1b683 | 1 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
587fec42 LP |
2 | #pragma once |
3 | ||
4 | /*** | |
5 | This file is part of systemd. | |
6 | ||
7 | Copyright 2015 Lennart Poettering | |
587fec42 LP |
8 | ***/ |
9 | ||
10 | #include "sd-event.h" | |
71d35b6b | 11 | |
587fec42 | 12 | #include "import-compress.h" |
71d35b6b | 13 | #include "macro.h" |
587fec42 LP |
14 | |
15 | typedef struct TarExport TarExport; | |
16 | ||
17 | typedef void (*TarExportFinished)(TarExport *export, int error, void *userdata); | |
18 | ||
19 | int tar_export_new(TarExport **export, sd_event *event, TarExportFinished on_finished, void *userdata); | |
20 | TarExport* tar_export_unref(TarExport *export); | |
21 | ||
22 | DEFINE_TRIVIAL_CLEANUP_FUNC(TarExport*, tar_export_unref); | |
23 | ||
24 | int tar_export_start(TarExport *export, const char *path, int fd, ImportCompressType compress); |