fwupd/plugins/dfu/dfu-format-dfu.h
2018-05-29 09:03:13 +01:00

29 lines
659 B
C

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2015-2016 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef __DFU_FORMAT_DFU_H
#define __DFU_FORMAT_DFU_H
#include <glib-object.h>
#include <gio/gio.h>
#include "dfu-firmware.h"
G_BEGIN_DECLS
DfuFirmwareFormat dfu_firmware_detect_dfu (GBytes *bytes);
GBytes *dfu_firmware_to_dfu (DfuFirmware *firmware,
GError **error);
gboolean dfu_firmware_from_dfu (DfuFirmware *firmware,
GBytes *bytes,
DfuFirmwareParseFlags flags,
GError **error);
G_END_DECLS
#endif /* __DFU_FORMAT_DFU_H */