We have two variables that are really dependent on each other, so let's collect them in envdata.h.
Signed-off-by: Tobias Schmidl <[email protected]> --- include/bootguard.h | 4 ++-- include/envdata.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/bootguard.h b/include/bootguard.h index 8e38d95..588b122 100644 --- a/include/bootguard.h +++ b/include/bootguard.h @@ -16,6 +16,8 @@ #include <efi.h> +#include "envdata.h" + /* The following definitions regarding status and error constants are * implemented the same way the corresponding gnu-efi constants are * defined. This is done for symmetry reasons and for the sake of @@ -31,8 +33,6 @@ typedef int BG_STATUS; #define DEFAULT_TIMEOUT_SEC 60 -#define ENV_FILE_NAME L"BGENV.DAT" - extern EFI_HANDLE this_image; typedef struct _BG_LOADER_PARAMS { diff --git a/include/envdata.h b/include/envdata.h index fddfa7f..9c4ad44 100644 --- a/include/envdata.h +++ b/include/envdata.h @@ -16,6 +16,7 @@ #include <stdint.h> +#define ENV_FILE_NAME L"BGENV.DAT" #define FAT_ENV_FILENAME "BGENV.DAT" #define ENV_STRING_LENGTH 255 -- 2.37.2 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20220928073521.1098757-2-tobiasschmidl%40siemens.com.
