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