| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "compress.h" |
| 5 |
#include "shared-forward.h" |
| 6 |
|
| 7 |
typedef struct RawExport RawExport; |
| 8 |
|
| 9 |
typedef void (*RawExportFinished)(RawExport *e, int error, void *userdata); |
| 10 |
|
| 11 |
int raw_export_new(RawExport **ret, sd_event *event, RawExportFinished on_finished, void *userdata); |
| 12 |
RawExport* raw_export_unref(RawExport *e); |
| 13 |
|
| 14 |
DEFINE_TRIVIAL_CLEANUP_FUNC(RawExport*, raw_export_unref); |
| 15 |
|
| 16 |
int raw_export_start(RawExport *e, const char *path, int fd, Compression compress); |