TianoCore EDK2 master
Loading...
Searching...
No Matches
FormBrowserEx2.h
Go to the documentation of this file.
1
10#ifndef __FORM_BROWSER_EXTENSION2_H__
11#define __FORM_BROWSER_EXTENSION2_H__
12
14
15#define EDKII_FORM_BROWSER_EXTENSION2_PROTOCOL_GUID \
16 { 0xa770c357, 0xb693, 0x4e6d, { 0xa6, 0xcf, 0xd2, 0x1c, 0x72, 0x8e, 0x55, 0xb }}
17
19
20#define BROWSER_EXTENSION2_VERSION_1 0x10000
21#define BROWSER_EXTENSION2_VERSION_1_1 0x10001
22
30typedef
31BOOLEAN
33 VOID
34 );
35
45typedef
47(EFIAPI *EXECUTE_ACTION)(
48 IN UINT32 Action,
49 IN UINT16 DefaultId
50 );
51
59typedef
60BOOLEAN
61(EFIAPI *IS_RESET_REQUIRED)(
62 VOID
63 );
64
65#define FORM_ENTRY_INFO_SIGNATURE SIGNATURE_32 ('f', 'e', 'i', 's')
66
67typedef struct {
68 UINTN Signature;
69 LIST_ENTRY Link;
70
71 EFI_HII_HANDLE HiiHandle;
72 EFI_GUID FormSetGuid;
73 EFI_FORM_ID FormId;
74 EFI_QUESTION_ID QuestionId;
76
77#define FORM_ENTRY_INFO_FROM_LINK(a) CR (a, FORM_ENTRY_INFO, Link, FORM_ENTRY_INFO_SIGNATURE)
78
79#define FORM_QUESTION_ATTRIBUTE_OVERRIDE_SIGNATURE SIGNATURE_32 ('f', 'q', 'o', 's')
80
81typedef struct {
82 UINTN Signature;
83 LIST_ENTRY Link;
84
85 EFI_QUESTION_ID QuestionId; // Find the question
86 EFI_FORM_ID FormId; // Find the form
87 EFI_GUID FormSetGuid; // Find the formset.
88 EFI_HII_HANDLE HiiHandle; // Find the HII handle
89 UINT32 Attribute; // Hide or grayout ...
91
92#define FORM_QUESTION_ATTRIBUTE_OVERRIDE_FROM_LINK(a) CR (a, QUESTION_ATTRIBUTE_OVERRIDE, Link, FORM_QUESTION_ATTRIBUTE_OVERRIDE_SIGNATURE)
93
98 UINT32 Version;
99 SET_SCOPE SetScope;
100 REGISTER_HOT_KEY RegisterHotKey;
101 REGISTER_EXIT_HANDLER RegiserExitHandler;
102 IS_BROWSER_DATA_MODIFIED IsBrowserDataModified;
103 EXECUTE_ACTION ExecuteAction;
112
113 IS_RESET_REQUIRED IsResetRequired;
114};
115
116extern EFI_GUID gEdkiiFormBrowserEx2ProtocolGuid;
117
118#endif
UINT64 UINTN
BOOLEAN(EFIAPI * IS_BROWSER_DATA_MODIFIED)(VOID)
EFI_STATUS(EFIAPI * EXECUTE_ACTION)(IN UINT32 Action, IN UINT16 DefaultId)
BOOLEAN(EFIAPI * IS_RESET_REQUIRED)(VOID)
EFI_STATUS(EFIAPI * SET_SCOPE)(IN BROWSER_SETTING_SCOPE Scope)
Definition: FormBrowserEx.h:68
VOID(EFIAPI * REGISTER_EXIT_HANDLER)(IN EXIT_HANDLER Handler)
EFI_STATUS(EFIAPI * REGISTER_HOT_KEY)(IN EFI_INPUT_KEY *KeyData, IN UINT32 Action, IN UINT16 DefaultId, IN EFI_STRING HelpString OPTIONAL)
Definition: FormBrowserEx.h:90
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HII_HANDLE
Definition: Base.h:213