fwupd/plugins/dfu/dfu-format-srec.h

33 lines
762 B
C

/*
* Copyright (C) 2015-2018 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef __DFU_FORMAT_SREC_H
#define __DFU_FORMAT_SREC_H
#include <glib-object.h>
#include <gio/gio.h>
#include "dfu-firmware.h"
G_BEGIN_DECLS
DfuFirmwareFormat dfu_firmware_detect_srec (GBytes *bytes);
GBytes *dfu_firmware_to_srec (DfuFirmware *firmware,
GError **error);
gboolean dfu_firmware_from_srec (DfuFirmware *firmware,
GBytes *bytes,
DfuFirmwareParseFlags flags,
GError **error);
gboolean dfu_image_from_srec (DfuImage *image,
GBytes *bytes,
guint32 start_addr,
DfuFirmwareParseFlags flags,
GError **error);
G_END_DECLS
#endif /* __DFU_FORMAT_SREC_H */