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