mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-03 04:29:47 +00:00

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
20 lines
385 B
C
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);
|