fwupd/plugins/cfu/fu-cfu-module.h
Richard Hughes 8e24fa77cf cfu: Add an initial outline CFU plugin
There's no actual hardware to test this against yet, but this is how I
would lay out a plugin if there was.

We still need to work out a generic encapsulation for the offer and
payload (for each component and bank) so this can work with LVFS and
fwupd.
2021-10-15 18:38:36 +01:00

26 lines
572 B
C

/*
* Copyright (C) 2021 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#include <fwupdplugin.h>
#define FU_TYPE_CFU_MODULE (fu_cfu_module_get_type())
G_DECLARE_FINAL_TYPE(FuCfuModule, fu_cfu_module, FU, CFU_MODULE, FuDevice)
guint8
fu_cfu_module_get_component_id(FuCfuModule *self);
guint8
fu_cfu_module_get_bank(FuCfuModule *self);
gboolean
fu_cfu_module_setup(FuCfuModule *self,
const guint8 *buf,
gsize bufsz,
gsize offset,
GError **error);
FuCfuModule *
fu_cfu_module_new(FuDevice *parent);