From 0dc8c02953eee64962a20ed87420994f126ea564 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 9 Mar 2018 11:00:10 +0000 Subject: [PATCH] Export FWUPDATE_GUID This is duplicated in two places internally, and is also required in fwupd too. --- linux/fwupdate.c | 2 -- linux/include/fwup.h | 2 ++ linux/libfwup.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/linux/fwupdate.c b/linux/fwupdate.c index 4980e90..03b5f92 100644 --- a/linux/fwupdate.c +++ b/linux/fwupdate.c @@ -25,8 +25,6 @@ #include "error.h" #include "ucs2.h" -#define FWUPDATE_GUID EFI_GUID(0x0abba7dc,0xe516,0x4167,0xbbf5,0x4d,0x9d,0x1c,0x73,0x94,0x16) - int verbose = 0; int quiet = 0; diff --git a/linux/include/fwup.h b/linux/include/fwup.h index bf63d80..915ea7a 100644 --- a/linux/include/fwup.h +++ b/linux/include/fwup.h @@ -44,6 +44,8 @@ extern int fwup_enable_esrt(void); #define FWUP_LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_AC 0x00000006 #define FWUP_LAST_ATTEMPT_STATUS_ERROR_PWR_EVT_BATT 0x00000007 +#define FWUPDATE_GUID EFI_GUID(0x0abba7dc,0xe516,0x4167,0xbbf5,0x4d,0x9d,0x1c,0x73,0x94,0x16) + typedef struct fwup_resource_s fwup_resource; typedef struct fwup_resource_iter_s fwup_resource_iter; diff --git a/linux/libfwup.c b/linux/libfwup.c index c781f62..7f56c48 100644 --- a/linux/libfwup.c +++ b/linux/libfwup.c @@ -448,8 +448,6 @@ free_info(update_info *info) } } -#define FWUPDATE_GUID EFI_GUID(0x0abba7dc,0xe516,0x4167,0xbbf5,0x4d,0x9d,0x1c,0x73,0x94,0x16) - static int get_info(efi_guid_t *guid, uint64_t hw_inst, update_info **info) {