fwupd/plugins/uefi-capsule/fu-uefi-update-info.h
Richard Hughes ee2e2c3674 uefi: Rename to uefi-capsule
Rename the plugin to make it clearer of the scope.

Based on a patch from Mario Limonciello <mario.limonciello@dell.com>
2021-01-05 15:31:22 +00:00

30 lines
1.1 KiB
C

/*
* Copyright (C) 2018 Richard Hughes <richard@hughsie.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#pragma once
#define FU_TYPE_UEFI_UPDATE_INFO (fu_uefi_update_info_get_type ())
G_DECLARE_FINAL_TYPE (FuUefiUpdateInfo, fu_uefi_update_info, FU, UEFI_UPDATE_INFO, GObject)
typedef enum {
FU_UEFI_UPDATE_INFO_STATUS_ATTEMPT_UPDATE = 0x00000001,
FU_UEFI_UPDATE_INFO_STATUS_ATTEMPTED = 0x00000002,
} FuUefiUpdateInfoStatus;
const gchar *fu_uefi_update_info_status_to_string (FuUefiUpdateInfoStatus status);
FuUefiUpdateInfo *fu_uefi_update_info_new (void);
gboolean fu_uefi_update_info_parse (FuUefiUpdateInfo *self,
const guint8 *buf,
gsize sz,
GError **error);
guint32 fu_uefi_update_info_get_version (FuUefiUpdateInfo *self);
const gchar *fu_uefi_update_info_get_guid (FuUefiUpdateInfo *self);
const gchar *fu_uefi_update_info_get_capsule_fn (FuUefiUpdateInfo *self);
guint32 fu_uefi_update_info_get_capsule_flags (FuUefiUpdateInfo *self);
guint64 fu_uefi_update_info_get_hw_inst (FuUefiUpdateInfo *self);
FuUefiUpdateInfoStatus fu_uefi_update_info_get_status (FuUefiUpdateInfo *self);