HALF ECHO LEARN / REFERENCE COLLECTION
v262.2src/import/export-raw.h
Git blob: cfd79d37af95d5db06fafd91e3f88b485844bdfb
Lines 1–17 of 17
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include "compress.h"
#include "forward.h"
typedef struct RawExport RawExport;
typedef void (*RawExportFinished)(RawExport *e, int error, void *userdata);
int raw_export_new(RawExport **ret, sd_event *event, RawExportFinished on_finished, void *userdata);
RawExport* raw_export_unref(RawExport *e);
DEFINE_TRIVIAL_CLEANUP_FUNC(RawExport*, raw_export_unref);
int raw_export_start(RawExport *e, const char *path, int fd, Compression compress);