fwupd/plugins/uefi/fu-uefi-bootmgr.h
Richard Hughes 29129ed4f4 uefi: Allow upgrades using a self-signed fwupd.efi binary
This doesn't require shim, so for this uncommon case add a configure option.

Fixes https://github.com/hughsie/fwupd/issues/669
2018-08-23 14:30:04 +01:00

29 lines
591 B
C

/*
* Copyright (C) 2018 Richard Hughes <richard@hughsie.com>
* Copyright (C) 2015-2017 Peter Jones <pjones@redhat.com>
*
* SPDX-License-Identifier: LGPL-2.1+
*/
#ifndef __FU_UEFI_BOOTMGR_H
#define __FU_UEFI_BOOTMGR_H
#include <glib.h>
#include <efivar.h>
G_BEGIN_DECLS
typedef enum {
FU_UEFI_BOOTMGR_FLAG_NONE = 0,
FU_UEFI_BOOTMGR_FLAG_USE_SHIM_FOR_SB = 1 << 0,
FU_UEFI_BOOTMGR_FLAG_LAST
} FuUefiBootmgrFlags;
gboolean fu_uefi_bootmgr_bootnext (const gchar *esp_path,
FuUefiBootmgrFlags flags,
GError **error);
G_END_DECLS
#endif /* __FU_UEFI_BOOTMGR_H */