X-Git-Url: https://code.delx.au/refind/blobdiff_plain/1f5e6865fb9bf8ebb78b4818a6d54440c7c4004a..4c9f41e161bd197922912efbcf4cc676077d5c00:/refind/global.h diff --git a/refind/global.h b/refind/global.h index 63bc008..905f79a 100644 --- a/refind/global.h +++ b/refind/global.h @@ -45,8 +45,12 @@ #ifndef __GLOBAL_H_ #define __GLOBAL_H_ -#include "efi.h" -#include "efilib.h" +#ifdef __MAKEWITH_GNUEFI +#include +#include +#else +#include "../include/tiano_includes.h" +#endif #include "libeg.h" @@ -66,6 +70,14 @@ #define NUM_SCAN_OPTIONS 10 +#define DEFAULT_ICONS_DIR L"icons" + +// OS bit codes; used in GlobalConfig.GraphicsOn +#define GRAPHICS_FOR_OSX 1 +#define GRAPHICS_FOR_LINUX 2 +#define GRAPHICS_FOR_ELILO 4 +#define GRAPHICS_FOR_GRUB 8 +#define GRAPHICS_FOR_WINDOWS 16 // // global definitions @@ -105,6 +117,7 @@ typedef struct { EFI_BLOCK_IO *WholeDiskBlockIO; EFI_DEVICE_PATH *WholeDiskDevicePath; MBR_PARTITION_INFO *MbrPartitionTable; + BOOLEAN IsReadable; } REFIT_VOLUME; typedef struct _refit_menu_entry { @@ -151,13 +164,21 @@ typedef struct { typedef struct { BOOLEAN TextOnly; + BOOLEAN ScanAllLinux; + UINTN RequestedScreenWidth; + UINTN RequestedScreenHeight; UINTN Timeout; UINTN HideUIFlags; UINTN MaxTags; // max. number of OS entries to show simultaneously in graphics mode + UINTN GraphicsFor; CHAR16 *BannerFileName; CHAR16 *SelectionSmallFileName; CHAR16 *SelectionBigFileName; CHAR16 *DefaultSelection; + CHAR16 *AlsoScan; + CHAR16 *DontScan; + CHAR16 *DriverDirs; + CHAR16 *IconsDir; UINTN ShowTools[NUM_TOOLS]; CHAR8 ScanFor[NUM_SCAN_OPTIONS]; // codes of types of loaders for which to scan } REFIT_CONFIG;