X-Git-Url: https://code.delx.au/refind/blobdiff_plain/cff588e1b33df1c292b3ae11a880e89092221b5f..107d80e5276d89f8b0763f6aa208e60d540ca06b:/refind/global.h diff --git a/refind/global.h b/refind/global.h index 6641d8b..95ac32f 100644 --- a/refind/global.h +++ b/refind/global.h @@ -34,7 +34,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* - * Modifications copyright (c) 2012-2013 Roderick W. Smith + * Modifications copyright (c) 2012-2014 Roderick W. Smith * * Modifications distributed under the terms of the GNU General Public * License (GPL) version 3 (GPLv3), a copy of which must be distributed @@ -50,8 +50,8 @@ #include #else #include "../include/tiano_includes.h" -#include "../EfiLib/GenericBdsLib.h" #endif +#include "../EfiLib/GenericBdsLib.h" #include "libeg.h" @@ -73,7 +73,8 @@ #define TAG_MOK_TOOL (13) #define TAG_FIRMWARE (14) #define TAG_MEMTEST (15) -#define NUM_TOOLS (16) +#define TAG_GDISK (16) +#define NUM_TOOLS (17) #define NUM_SCAN_OPTIONS 10 @@ -128,6 +129,15 @@ #define BANNER_NOSCALE 0 #define BANNER_FILLSCREEN 1 +// Sizes of the default icons; badges are 1/4 the big icon size +#define DEFAULT_SMALL_ICON_SIZE 48 +#define DEFAULT_BIG_ICON_SIZE 128 + +// Codes for types of icon sizes; used for indexing into GlobalConfig.IconSizes[] +#define ICON_SIZE_BADGE 0 +#define ICON_SIZE_SMALL 1 +#define ICON_SIZE_BIG 2 + // Names of binaries that can manage MOKs.... #define MOK_NAMES L"MokManager.efi,HashTool.efi,HashTool-signed.efi" // Directories to search for these MOK-managing programs. Note that SelfDir is @@ -138,6 +148,9 @@ // Files that may be Windows recovery files #define WINDOWS_RECOVERY_FILES L"EFI\\Microsoft\\Boot\\LrsBootmgr.efi" +#define NULL_GUID_VALUE { 0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} }; +#define REFIND_GUID_VALUE { 0x36D08FA7, 0xCF0B, 0x42F5, {0x8F, 0x14, 0x68, 0xDF, 0x73, 0xED, 0x37, 0x40} }; + // // global definitions // @@ -162,7 +175,9 @@ typedef struct { EFI_HANDLE DeviceHandle; EFI_FILE *RootDir; CHAR16 *VolName; + CHAR16 *PartName; EFI_GUID VolUuid; + EFI_GUID PartGuid; UINTN VolNumber; EG_IMAGE *VolIconImage; EG_IMAGE *VolBadgeImage; @@ -222,9 +237,7 @@ typedef struct { typedef struct { REFIT_MENU_ENTRY me; REFIT_VOLUME *Volume; -#ifndef __MAKEWITH_GNUEFI BDS_COMMON_OPTION *BdsOption; -#endif CHAR16 *LoadOptions; BOOLEAN Enabled; } LEGACY_ENTRY; @@ -232,6 +245,7 @@ typedef struct { typedef struct { BOOLEAN TextOnly; BOOLEAN ScanAllLinux; + BOOLEAN DeepLegacyScan; UINTN RequestedScreenWidth; UINTN RequestedScreenHeight; UINTN BannerBottomEdge; @@ -243,6 +257,7 @@ typedef struct { UINTN LegacyType; UINTN ScanDelay; UINTN ScreensaverTime; + UINTN IconSizes[3]; UINTN BannerScale; CHAR16 *BannerFileName; EG_IMAGE *ScreenBackground;