]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/import/export-raw.h
mkosi: Ignore version from versioned dependencies in .SRCINFO
[thirdparty/systemd.git] / src / import / export-raw.h
CommitLineData
db9ecf05 1/* SPDX-License-Identifier: LGPL-2.1-or-later */
587fec42
LP
2#pragma once
3
587fec42 4#include "sd-event.h"
71d35b6b 5
587fec42 6#include "import-compress.h"
71d35b6b 7#include "macro.h"
587fec42
LP
8
9typedef struct RawExport RawExport;
10
11typedef void (*RawExportFinished)(RawExport *export, int error, void *userdata);
12
13int raw_export_new(RawExport **export, sd_event *event, RawExportFinished on_finished, void *userdata);
14RawExport* raw_export_unref(RawExport *export);
15
16DEFINE_TRIVIAL_CLEANUP_FUNC(RawExport*, raw_export_unref);
17
18int raw_export_start(RawExport *export, const char *path, int fd, ImportCompressType compress);