]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/import/export-raw.h
7a694545174a68c3612f596e2cc005ae6c83e236
[thirdparty/systemd.git] / src / import / export-raw.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright 2015 Lennart Poettering
6 ***/
7
8 #include "sd-event.h"
9
10 #include "import-compress.h"
11 #include "macro.h"
12
13 typedef struct RawExport RawExport;
14
15 typedef void (*RawExportFinished)(RawExport *export, int error, void *userdata);
16
17 int raw_export_new(RawExport **export, sd_event *event, RawExportFinished on_finished, void *userdata);
18 RawExport* raw_export_unref(RawExport *export);
19
20 DEFINE_TRIVIAL_CLEANUP_FUNC(RawExport*, raw_export_unref);
21
22 int raw_export_start(RawExport *export, const char *path, int fd, ImportCompressType compress);