1 /* SPDX-License-Identifier: LGPL-2.1+ */
6 #include "import-compress.h"
9 typedef struct TarExport TarExport
;
11 typedef void (*TarExportFinished
)(TarExport
*export
, int error
, void *userdata
);
13 int tar_export_new(TarExport
**export
, sd_event
*event
, TarExportFinished on_finished
, void *userdata
);
14 TarExport
* tar_export_unref(TarExport
*export
);
16 DEFINE_TRIVIAL_CLEANUP_FUNC(TarExport
*, tar_export_unref
);
18 int tar_export_start(TarExport
*export
, const char *path
, int fd
, ImportCompressType compress
);