fwupd/libfwupdplugin/fu-chunk-private.h
Richard Hughes 52441f28a4 Allow objects to deserialize to XML
This makes a lot more sense; we can parse a firmware and export the same XML
we would use in a .builder.xml file. This allows us to two two things:

 * Check we can round trip from XML -> binary -> XML

 * Using a .builder.xml file we can check ->write() is endian safe
2021-03-15 12:07:30 +00:00

20 lines
385 B
C

/*
* Copyright (C) 2017 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <xmlb.h>
#include "fu-chunk.h"
#include "fu-firmware.h"
void fu_chunk_export (FuChunk *self,
FuFirmwareExportFlags flags,
XbBuilderNode *bn);
gboolean fu_chunk_build (FuChunk *self,
XbNode *n,
GError **error);