TianoCore EDK2 master
|
Go to the source code of this file.
Private structure, MACRO and function definitions for User Interface related functionalities.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Expression.h.
EFI_STATUS EvaluateExpression | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN FORM_BROWSER_FORM * | Form, | ||
IN OUT FORM_EXPRESSION * | Expression | ||
) |
Evaluate the result of a HII expression.
If Expression is NULL, then ASSERT.
FormSet | FormSet associated with this expression. |
Form | Form associated with this expression. |
Expression | Expression to be evaluated. |
EFI_SUCCESS | The expression evaluated successfuly |
EFI_NOT_FOUND | The Question which referenced by a QuestionId could not be found. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
EFI_ACCESS_DENIED | The pop operation underflowed the stack |
EFI_INVALID_PARAMETER | Syntax error with the Expression |
Definition at line 2536 of file Expression.c.
EXPRESS_RESULT EvaluateExpressionList | ( | IN FORM_EXPRESSION_LIST * | ExpList, |
IN BOOLEAN | Evaluate, | ||
IN FORM_BROWSER_FORMSET *FormSet | OPTIONAL, | ||
IN FORM_BROWSER_FORM *Form | OPTIONAL | ||
) |
Return the result of the expression list. Check the expression list and return the highest priority express result. Priority: DisableIf > SuppressIf > GrayOutIf > FALSE
ExpList | The input expression list. |
Evaluate | Whether need to evaluate the expression first. |
FormSet | FormSet associated with this expression. |
Form | Form associated with this expression. |
EXPRESS_RESULT | Return the higher priority express result. DisableIf > SuppressIf > GrayOutIf > FALSE |
Definition at line 3732 of file Expression.c.
VOID ExtendValueToU64 | ( | IN EFI_HII_VALUE * | Value | ) |
Zero extend integer/boolean/date/time to UINT64 for comparing.
Value | HII Value to be converted. |
Definition at line 2096 of file Expression.c.
Get the expression list count.
Level | Which type this expression belong to. Form, statement or option? |
>=0 | The expression count |
-1 | Input parameter error. |
Definition at line 423 of file Expression.c.
FORM_EXPRESSION ** GetConditionalExpressionList | ( | IN EXPRESS_LEVEL | Level | ) |
Get the expression Buffer pointer.
Level | Which type this expression belong to. Form, statement or option? |
The | start pointer of the expression buffer or NULL. |
Definition at line 450 of file Expression.c.
FORM_BROWSER_FORM * IdToForm | ( | IN FORM_BROWSER_FORMSET * | FormSet, |
IN UINT16 | FormId | ||
) |
Get Form given its FormId.
FormSet | The formset which contains this form. |
FormId | Id of this form. |
Pointer | The form. |
NULL | Specified Form is not found in the formset. |
Definition at line 767 of file Expression.c.
EFI_STATUS PopConditionalExpression | ( | IN EXPRESS_LEVEL | Level | ) |
Pop the expression options from the Stack
Level | Which type this expression belong to. Form, statement or option? |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 523 of file Expression.c.
EFI_STATUS PopCurrentExpression | ( | OUT VOID ** | Pointer | ) |
Pop current expression from the Stack
Pointer | Pointer to current expression to be pop. |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 243 of file Expression.c.
EFI_STATUS PopMapExpressionList | ( | OUT VOID ** | Pointer | ) |
Pop the list of map expression from the Stack
Pointer | Pointer to the list of map expression to be pop. |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 594 of file Expression.c.
EFI_STATUS PopScope | ( | OUT UINT8 * | Operand | ) |
Pop an Operand from the Stack
Operand | Operand to pop. |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 663 of file Expression.c.
EFI_STATUS PushConditionalExpression | ( | IN FORM_EXPRESSION * | Pointer, |
IN EXPRESS_LEVEL | Level | ||
) |
Push the expression options onto the Stack.
Pointer | Pointer to the current expression. |
Level | Which type this expression belong to. Form, statement or option? |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 479 of file Expression.c.
EFI_STATUS PushCurrentExpression | ( | IN VOID * | Pointer | ) |
Push current expression onto the Stack
Pointer | Pointer to current expression. |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 216 of file Expression.c.
EFI_STATUS PushMapExpressionList | ( | IN VOID * | Pointer | ) |
Push the list of map expression onto the Stack
Pointer | Pointer to the list of map expression to be pushed. |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 567 of file Expression.c.
EFI_STATUS PushScope | ( | IN UINT8 | Operand | ) |
Push an Operand onto the Stack
Operand | Operand to push. |
EFI_SUCCESS | The value was pushed onto the stack. |
EFI_OUT_OF_RESOURCES | There is not enough system memory to grow the stack. |
Definition at line 635 of file Expression.c.
VOID ResetCurrentExpressionStack | ( | VOID | ) |
Reset stack pointer to begin of the stack.
Definition at line 196 of file Expression.c.
VOID ResetMapExpressionListStack | ( | VOID | ) |
Reset stack pointer to begin of the stack.
Definition at line 266 of file Expression.c.
VOID ResetScopeStack | ( | VOID | ) |
Reset stack pointer to begin of the stack.
Definition at line 617 of file Expression.c.