TianoCore EDK2 master
Loading...
Searching...
No Matches
HiiLib.h
Go to the documentation of this file.
1
10#ifndef __HII_LIB_H__
11#define __HII_LIB_H__
12
15// HiiLib Functions
18
54EFIAPI
56 IN CONST EFI_GUID *PackageListGuid,
57 IN EFI_HANDLE DeviceHandle OPTIONAL,
58 ...
59 )
60;
61
71VOID
72EFIAPI
74 IN EFI_HII_HANDLE HiiHandle
75 )
76;
77
116EFI_STRING_ID
117EFIAPI
119 IN EFI_HII_HANDLE HiiHandle,
120 IN EFI_STRING_ID StringId OPTIONAL,
121 IN CONST EFI_STRING String,
122 IN CONST CHAR8 *SupportedLanguages OPTIONAL
123 )
124;
125
142EFI_STRING
143EFIAPI
145 IN EFI_HII_HANDLE HiiHandle,
146 IN EFI_STRING_ID StringId,
147 IN CONST CHAR8 *Language OPTIONAL
148 );
149
183EFI_STRING
184EFIAPI
186 IN EFI_HII_HANDLE HiiHandle,
187 IN EFI_STRING_ID StringId,
188 IN CONST CHAR8 *Language OPTIONAL,
189 IN BOOLEAN TryBestLanguage
190 );
191
219EFI_STRING
220EFIAPI
222 IN CONST EFI_GUID *PackageListGuid,
223 IN EFI_STRING_ID StringId,
224 IN CONST CHAR8 *Language OPTIONAL
225 )
226;
227
249EFIAPI
251 IN CONST EFI_GUID *PackageListGuid OPTIONAL
252 )
253;
254
271EFIAPI
273 IN EFI_HII_HANDLE Handle,
274 OUT EFI_IFR_FORM_SET **Buffer,
275 OUT UINTN *BufferSize
276 );
277
296CHAR8 *
297EFIAPI
299 IN EFI_HII_HANDLE HiiHandle
300 )
301;
302
332EFI_STRING
333EFIAPI
335 IN CONST EFI_GUID *Guid OPTIONAL,
336 IN CONST CHAR16 *Name OPTIONAL,
337 IN EFI_HANDLE DriverHandle
338 );
339
356BOOLEAN
357EFIAPI
359 IN CONST EFI_STRING Request OPTIONAL,
360 IN UINT16 DefaultId
361 );
362
377BOOLEAN
378EFIAPI
380 IN CONST EFI_STRING Request OPTIONAL
381 );
382
396BOOLEAN
397EFIAPI
399 IN CONST EFI_STRING ConfigHdr,
400 IN CONST EFI_GUID *Guid OPTIONAL,
401 IN CONST CHAR16 *Name OPTIONAL
402 );
403
419BOOLEAN
420EFIAPI
422 IN CONST EFI_GUID *VariableGuid OPTIONAL,
423 IN CONST CHAR16 *VariableName OPTIONAL,
424 IN UINTN BufferSize,
425 OUT UINT8 *Buffer
426 );
427
449BOOLEAN
450EFIAPI
452 IN CONST EFI_GUID *VariableGuid OPTIONAL,
453 IN CONST CHAR16 *VariableName OPTIONAL,
454 IN UINTN BufferSize,
455 IN CONST UINT8 *Buffer,
456 IN CONST CHAR16 *RequestElement OPTIONAL
457 );
458
464
478#define EFI_HII_TIME_UINT64(Hour, Minute, Second) \
479 (UINT64)((Hour & 0xff) | ((Minute & 0xff) << 8) | ((Second & 0xff) << 16))
480
494#define EFI_HII_DATE_UINT64(Year, Month, Day) \
495 (UINT64)((Year & 0xffff) | ((Month & 0xff) << 16) | ((Day & 0xff) << 24))
496
505VOID *
506EFIAPI
508 VOID
509 );
510
521VOID
522EFIAPI
524 VOID *OpCodeHandle
525 );
526
541UINT8 *
542EFIAPI
544 IN VOID *OpCodeHandle,
545 IN UINT8 *RawBuffer,
546 IN UINTN RawBufferSize
547 );
548
560UINT8 *
561EFIAPI
563 IN VOID *OpCodeHandle
564 );
565
583UINT8 *
584EFIAPI
586 IN VOID *OpCodeHandle,
587 IN UINT16 StringId,
588 IN UINT8 Flags,
589 IN UINT8 Type,
590 IN UINT64 Value
591 );
592
608UINT8 *
609EFIAPI
611 IN VOID *OpCodeHandle,
612 IN UINT16 DefaultId,
613 IN UINT8 Type,
614 IN UINT64 Value
615 );
616
640UINT8 *
641EFIAPI
643 IN VOID *OpCodeHandle,
644 IN CONST EFI_GUID *Guid,
645 IN CONST VOID *GuidOpCode OPTIONAL,
646 IN UINTN OpCodeSize
647 );
648
666UINT8 *
667EFIAPI
669 IN VOID *OpCodeHandle,
670 IN EFI_QUESTION_ID QuestionId,
671 IN EFI_STRING_ID Prompt,
672 IN EFI_STRING_ID Help,
673 IN UINT8 QuestionFlags,
674 IN EFI_STRING_ID QuestionConfig
675 );
676
695UINT8 *
696EFIAPI
698 IN VOID *OpCodeHandle,
699 IN EFI_STRING_ID Prompt,
700 IN EFI_STRING_ID Help,
701 IN UINT8 Flags,
702 IN UINT8 Scope
703 );
704
722UINT8 *
723EFIAPI
725 IN VOID *OpCodeHandle,
726 IN EFI_FORM_ID FormId,
727 IN EFI_STRING_ID Prompt,
728 IN EFI_STRING_ID Help,
729 IN UINT8 QuestionFlags,
730 IN EFI_QUESTION_ID QuestionId
731 );
732
762UINT8 *
763EFIAPI
765 IN VOID *OpCodeHandle,
766 IN EFI_FORM_ID RefFormId,
767 IN EFI_STRING_ID Prompt,
768 IN EFI_STRING_ID Help,
769 IN UINT8 QuestionFlags,
770 IN EFI_QUESTION_ID QuestionId,
771 IN EFI_QUESTION_ID RefQuestionId,
772 IN EFI_GUID *RefFormSetId OPTIONAL,
773 IN EFI_STRING_ID RefDevicePath
774 );
775
799UINT8 *
800EFIAPI
802 IN VOID *OpCodeHandle,
803 IN EFI_QUESTION_ID QuestionId,
804 IN EFI_VARSTORE_ID VarStoreId,
805 IN UINT16 VarOffset,
806 IN EFI_STRING_ID Prompt,
807 IN EFI_STRING_ID Help,
808 IN UINT8 QuestionFlags,
809 IN UINT8 CheckBoxFlags,
810 IN VOID *DefaultsOpCodeHandle OPTIONAL
811 );
812
839UINT8 *
840EFIAPI
842 IN VOID *OpCodeHandle,
843 IN EFI_QUESTION_ID QuestionId,
844 IN EFI_VARSTORE_ID VarStoreId,
845 IN UINT16 VarOffset,
846 IN EFI_STRING_ID Prompt,
847 IN EFI_STRING_ID Help,
848 IN UINT8 QuestionFlags,
849 IN UINT8 NumericFlags,
850 IN UINT64 Minimum,
851 IN UINT64 Maximum,
852 IN UINT64 Step,
853 IN VOID *DefaultsOpCodeHandle OPTIONAL
854 );
855
881UINT8 *
882EFIAPI
884 IN VOID *OpCodeHandle,
885 IN EFI_QUESTION_ID QuestionId,
886 IN EFI_VARSTORE_ID VarStoreId,
887 IN UINT16 VarOffset,
888 IN EFI_STRING_ID Prompt,
889 IN EFI_STRING_ID Help,
890 IN UINT8 QuestionFlags,
891 IN UINT8 StringFlags,
892 IN UINT8 MinSize,
893 IN UINT8 MaxSize,
894 IN VOID *DefaultsOpCodeHandle OPTIONAL
895 );
896
921UINT8 *
922EFIAPI
924 IN VOID *OpCodeHandle,
925 IN EFI_QUESTION_ID QuestionId,
926 IN EFI_VARSTORE_ID VarStoreId,
927 IN UINT16 VarOffset,
928 IN EFI_STRING_ID Prompt,
929 IN EFI_STRING_ID Help,
930 IN UINT8 QuestionFlags,
931 IN UINT8 OneOfFlags,
932 IN VOID *OptionsOpCodeHandle,
933 IN VOID *DefaultsOpCodeHandle OPTIONAL
934 );
935
962UINT8 *
963EFIAPI
965 IN VOID *OpCodeHandle,
966 IN EFI_QUESTION_ID QuestionId,
967 IN EFI_VARSTORE_ID VarStoreId,
968 IN UINT16 VarOffset,
969 IN EFI_STRING_ID Prompt,
970 IN EFI_STRING_ID Help,
971 IN UINT8 QuestionFlags,
972 IN UINT8 OrderedListFlags,
973 IN UINT8 DataType,
974 IN UINT8 MaxContainers,
975 IN VOID *OptionsOpCodeHandle,
976 IN VOID *DefaultsOpCodeHandle OPTIONAL
977 );
978
993UINT8 *
994EFIAPI
996 IN VOID *OpCodeHandle,
997 IN EFI_STRING_ID Prompt,
998 IN EFI_STRING_ID Help,
999 IN EFI_STRING_ID TextTwo
1000 );
1001
1027UINT8 *
1028EFIAPI
1030 IN VOID *OpCodeHandle,
1031 IN EFI_QUESTION_ID QuestionId,
1032 IN EFI_VARSTORE_ID VarStoreId OPTIONAL,
1033 IN UINT16 VarOffset OPTIONAL,
1034 IN EFI_STRING_ID Prompt,
1035 IN EFI_STRING_ID Help,
1036 IN UINT8 QuestionFlags,
1037 IN UINT8 DateFlags,
1038 IN VOID *DefaultsOpCodeHandle OPTIONAL
1039 );
1040
1066UINT8 *
1067EFIAPI
1069 IN VOID *OpCodeHandle,
1070 IN EFI_QUESTION_ID QuestionId,
1071 IN EFI_VARSTORE_ID VarStoreId OPTIONAL,
1072 IN UINT16 VarOffset OPTIONAL,
1073 IN EFI_STRING_ID Prompt,
1074 IN EFI_STRING_ID Help,
1075 IN UINT8 QuestionFlags,
1076 IN UINT8 TimeFlags,
1077 IN VOID *DefaultsOpCodeHandle OPTIONAL
1078 );
1079
1138EFIAPI
1140 IN EFI_HII_HANDLE HiiHandle,
1141 IN EFI_GUID *FormSetGuid OPTIONAL,
1142 IN EFI_FORM_ID FormId,
1143 IN VOID *StartOpCodeHandle,
1144 IN VOID *EndOpCodeHandle OPTIONAL
1145 );
1146
1147#endif
UINT64 UINTN
EFI_STRING EFIAPI HiiConstructConfigHdr(IN CONST EFI_GUID *Guid OPTIONAL, IN CONST CHAR16 *Name OPTIONAL, IN EFI_HANDLE DriverHandle)
Definition: HiiLib.c:723
UINT8 *EFIAPI HiiCreateSubTitleOpCode(IN VOID *OpCodeHandle, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 Flags, IN UINT8 Scope)
Definition: HiiLib.c:3504
UINT8 *EFIAPI HiiCreateDateOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId OPTIONAL, IN UINT16 VarOffset OPTIONAL, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 DateFlags, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:4081
UINT8 *EFIAPI HiiCreateNumericOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId, IN UINT16 VarOffset, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 NumericFlags, IN UINT64 Minimum, IN UINT64 Maximum, IN UINT64 Step, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:3740
EFI_STRING EFIAPI HiiGetStringEx(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId, IN CONST CHAR8 *Language OPTIONAL, IN BOOLEAN TryBestLanguage)
Definition: HiiString.c:255
UINT8 *EFIAPI HiiCreateDefaultOpCode(IN VOID *OpCodeHandle, IN UINT16 DefaultId, IN UINT8 Type, IN UINT64 Value)
Definition: HiiLib.c:3367
BOOLEAN EFIAPI HiiGetBrowserData(IN CONST EFI_GUID *VariableGuid OPTIONAL, IN CONST CHAR16 *VariableName OPTIONAL, IN UINTN BufferSize, OUT UINT8 *Buffer)
Definition: HiiLib.c:2872
UINT8 *EFIAPI HiiCreateGotoOpCode(IN VOID *OpCodeHandle, IN EFI_FORM_ID FormId, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN EFI_QUESTION_ID QuestionId)
Definition: HiiLib.c:3551
VOID *EFIAPI HiiAllocateOpCodeHandle(VOID)
Definition: HiiLib.c:3051
UINT8 *EFIAPI HiiCreateTimeOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId OPTIONAL, IN UINT16 VarOffset OPTIONAL, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 TimeFlags, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:4146
VOID EFIAPI HiiFreeOpCodeHandle(VOID *OpCodeHandle)
Definition: HiiLib.c:3085
EFI_HII_HANDLE EFIAPI HiiAddPackages(IN CONST EFI_GUID *PackageListGuid, IN EFI_HANDLE DeviceHandle OPTIONAL,...)
Definition: HiiLib.c:141
UINT8 *EFIAPI HiiCreateGuidOpCode(IN VOID *OpCodeHandle, IN CONST EFI_GUID *Guid, IN CONST VOID *GuidOpCode OPTIONAL, IN UINTN OpCodeSize)
Definition: HiiLib.c:3411
UINT8 *EFIAPI HiiCreateStringOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId, IN UINT16 VarOffset, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 StringFlags, IN UINT8 MinSize, IN UINT8 MaxSize, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:3841
UINT8 *EFIAPI HiiCreateCheckBoxOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId, IN UINT16 VarOffset, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 CheckBoxFlags, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:3675
BOOLEAN EFIAPI HiiSetBrowserData(IN CONST EFI_GUID *VariableGuid OPTIONAL, IN CONST CHAR16 *VariableName OPTIONAL, IN UINTN BufferSize, IN CONST UINT8 *Buffer, IN CONST CHAR16 *RequestElement OPTIONAL)
Definition: HiiLib.c:2954
EFI_HII_HANDLE *EFIAPI HiiGetHiiHandles(IN CONST EFI_GUID *PackageListGuid OPTIONAL)
Definition: HiiLib.c:286
EFI_STRING EFIAPI HiiGetString(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId, IN CONST CHAR8 *Language OPTIONAL)
Definition: HiiString.c:211
UINT8 *EFIAPI HiiCreateEndOpCode(IN VOID *OpCodeHandle)
Definition: HiiLib.c:3301
CHAR8 *EFIAPI HiiGetSupportedLanguages(IN EFI_HII_HANDLE HiiHandle)
Definition: HiiLanguage.c:31
UINT8 *EFIAPI HiiCreateOneOfOptionOpCode(IN VOID *OpCodeHandle, IN UINT16 StringId, IN UINT8 Flags, IN UINT8 Type, IN UINT64 Value)
Definition: HiiLib.c:3329
UINT8 *EFIAPI HiiCreateRawOpCodes(IN VOID *OpCodeHandle, IN UINT8 *RawBuffer, IN UINTN RawBufferSize)
Definition: HiiLib.c:3246
EFI_STATUS EFIAPI HiiUpdateForm(IN EFI_HII_HANDLE HiiHandle, IN EFI_GUID *FormSetGuid OPTIONAL, IN EFI_FORM_ID FormId, IN VOID *StartOpCodeHandle, IN VOID *EndOpCodeHandle OPTIONAL)
Definition: HiiLib.c:4410
BOOLEAN EFIAPI HiiIsConfigHdrMatch(IN CONST EFI_STRING ConfigHdr, IN CONST EFI_GUID *Guid OPTIONAL, IN CONST CHAR16 *Name OPTIONAL)
Definition: HiiLib.c:2813
UINT8 *EFIAPI HiiCreateOneOfOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId, IN UINT16 VarOffset, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 OneOfFlags, IN VOID *OptionsOpCodeHandle, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:3908
EFI_STRING EFIAPI HiiGetPackageString(IN CONST EFI_GUID *PackageListGuid, IN EFI_STRING_ID StringId, IN CONST CHAR8 *Language OPTIONAL)
Definition: HiiString.c:171
EFI_STRING_ID EFIAPI HiiSetString(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId OPTIONAL, IN CONST EFI_STRING String, IN CONST CHAR8 *SupportedLanguages OPTIONAL)
Definition: HiiString.c:52
UINT8 *EFIAPI HiiCreateGotoExOpCode(IN VOID *OpCodeHandle, IN EFI_FORM_ID RefFormId, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN EFI_QUESTION_ID QuestionId, IN EFI_QUESTION_ID RefQuestionId, IN EFI_GUID *RefFormSetId OPTIONAL, IN EFI_STRING_ID RefDevicePath)
Definition: HiiLib.c:3605
UINT8 *EFIAPI HiiCreateActionOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN EFI_STRING_ID QuestionConfig)
Definition: HiiLib.c:3461
UINT8 *EFIAPI HiiCreateOrderedListOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId, IN UINT16 VarOffset, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 OrderedListFlags, IN UINT8 DataType, IN UINT8 MaxContainers, IN VOID *OptionsOpCodeHandle, IN VOID *DefaultsOpCodeHandle OPTIONAL)
Definition: HiiLib.c:3979
EFI_STATUS EFIAPI HiiGetFormSetFromHiiHandle(IN EFI_HII_HANDLE Handle, OUT EFI_IFR_FORM_SET **Buffer, OUT UINTN *BufferSize)
Definition: HiiLib.c:394
UINT8 *EFIAPI HiiCreateTextOpCode(IN VOID *OpCodeHandle, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN EFI_STRING_ID TextTwo)
Definition: HiiLib.c:4037
BOOLEAN EFIAPI HiiValidateSettings(IN CONST EFI_STRING Request OPTIONAL)
Definition: HiiLib.c:2689
BOOLEAN EFIAPI HiiSetToDefaults(IN CONST EFI_STRING Request OPTIONAL, IN UINT16 DefaultId)
Definition: HiiLib.c:2714
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
Definition: HiiLib.c:253
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
VOID * EFI_HII_HANDLE
Definition: Base.h:213