mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-25 22:40:50 +00:00

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.
26 lines
572 B
C
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);
|