efiui.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef _EFI_UI_H
  2. #define _EFI_UI_H
  3. /*++
  4. Copyright (c) 200 Intel Corporation
  5. Module Name:
  6. EfiUi.h
  7. Abstract:
  8. Protocol used to build User Interface (UI) stuff.
  9. This protocol is just data. It is a multi dimentional array.
  10. For each string there is an array of UI_STRING_ENTRY. Each string
  11. is for a different language translation of the same string. The list
  12. is terminated by a NULL UiString. There can be any number of
  13. UI_STRING_ENTRY arrays. A NULL array terminates the list. A NULL array
  14. entry contains all zeros.
  15. Thus the shortest possible EFI_UI_PROTOCOL has three UI_STRING_ENTRY.
  16. The String, it's NULL terminator, and the NULL terminator for the entire
  17. thing.
  18. Revision History
  19. --*/
  20. #define EFI_UI_PROTOCOL \
  21. { 0x32dd7981, 0x2d27, 0x11d4, {0xbc, 0x8b, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81} }
  22. typedef enum {
  23. UiDeviceString,
  24. UiVendorString,
  25. UiMaxString
  26. } UI_STRING_TYPE;
  27. typedef struct {
  28. ISO_639_2 *LangCode;
  29. CHAR16 *UiString;
  30. } UI_STRING_ENTRY;
  31. #define EFI_UI_VERSION 0x00010000
  32. typedef struct _UI_INTERFACE {
  33. UINT32 Version;
  34. UI_STRING_ENTRY *Entry;
  35. } UI_INTERFACE;
  36. #endif