mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-25 18:44:54 +00:00

The fact that it currently lives in uefi-capsule is a historical accident, and it doesn't really belong to tpm-eventlog either. Fixes some of https://github.com/fwupd/fwupd/issues/3901
27 lines
659 B
C
27 lines
659 B
C
/*
|
|
* Copyright (C) 2019 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <fwupdplugin.h>
|
|
|
|
#define FU_TYPE_TPM_DEVICE (fu_tpm_device_get_type())
|
|
G_DECLARE_DERIVABLE_TYPE(FuTpmDevice, fu_tpm_device, FU, TPM_DEVICE, FuUdevDevice)
|
|
|
|
struct _FuTpmDeviceClass {
|
|
FuDeviceClass parent_class;
|
|
gpointer __reserved[31];
|
|
};
|
|
|
|
void
|
|
fu_tpm_device_set_family(FuTpmDevice *self, const gchar *family);
|
|
const gchar *
|
|
fu_tpm_device_get_family(FuTpmDevice *self);
|
|
void
|
|
fu_tpm_device_add_checksum(FuTpmDevice *self, guint idx, const gchar *checksum);
|
|
GPtrArray *
|
|
fu_tpm_device_get_checksums(FuTpmDevice *self, guint idx);
|