mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-16 09:56:52 +00:00
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
*
|
|
* Copyright (C) 2018 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#ifndef __FU_UEFI_UPDATE_INFO_H
|
|
#define __FU_UEFI_UPDATE_INFO_H
|
|
|
|
#include <glib-object.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#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);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __FU_UEFI_UPDATE_INFO_H */
|