diff options
Diffstat (limited to 'UefiMonitorTest')
-rw-r--r-- | UefiMonitorTest/SettingsMenu.c | 45 | ||||
-rw-r--r-- | UefiMonitorTest/SettingsMenu.h | 33 | ||||
-rw-r--r-- | UefiMonitorTest/UefiMonitorTest.c | 5 | ||||
-rw-r--r-- | UefiMonitorTest/UefiMonitorTest.h | 1 | ||||
-rw-r--r-- | UefiMonitorTest/UefiMonitorTest.inf | 1 |
5 files changed, 84 insertions, 1 deletions
diff --git a/UefiMonitorTest/SettingsMenu.c b/UefiMonitorTest/SettingsMenu.c new file mode 100644 index 0000000..211353d --- /dev/null +++ b/UefiMonitorTest/SettingsMenu.c @@ -0,0 +1,45 @@ +#include <Library/DebugLib.h> + +#include "SettingsMenu.h" + +VOID +SettingsMenuInit ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +SettingsMenuDoit ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +SettingsMenuTip ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +SettingsChangeParam ( + IN UMT_CONTEXT *Ctx, + IN INT8 ParamStep + ) +{ + +} + +VOID +SettingsMenuChangeValue ( + IN UMT_CONTEXT *Ctx, + IN INT8 ValueStep + ) +{ + +} diff --git a/UefiMonitorTest/SettingsMenu.h b/UefiMonitorTest/SettingsMenu.h new file mode 100644 index 0000000..d324eca --- /dev/null +++ b/UefiMonitorTest/SettingsMenu.h @@ -0,0 +1,33 @@ +#ifndef UMT_SETTINGS_MENU_H +#define UMT_SETTINGS_MENU_H + +#include "UefiMonitorTest.h" + +VOID +SettingsMenuInit ( + IN UMT_CONTEXT *Ctx + ); + +VOID +SettingsMenuDoit ( + IN UMT_CONTEXT *Ctx + ); + +VOID +SettingsMenuTip ( + IN UMT_CONTEXT *Ctx + ); + +VOID +SettingsChangeParam ( + IN UMT_CONTEXT *Ctx, + IN INT8 ParamStep + ); + +VOID +SettingsMenuChangeValue ( + IN UMT_CONTEXT *Ctx, + IN INT8 ValueStep + ); + +#endif /* UMT_SETTINGS_MENU_H */ diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c index 63429d7..29efa8d 100644 --- a/UefiMonitorTest/UefiMonitorTest.c +++ b/UefiMonitorTest/UefiMonitorTest.c @@ -10,9 +10,11 @@ #include "UefiMonitorTest.h" #include "MainMenu.h" +#include "SettingsMenu.h" STATIC CONST UMT_STATE_ACTIONS mStateActions[UMT_STATE_END] = { - { MainMenuInit, MainMenuDoit, MainMenuTip, MainMenuChangeParam, MainMenuChangeValue } + { MainMenuInit, MainMenuDoit, MainMenuTip, MainMenuChangeParam, MainMenuChangeValue }, + { SettingsMenuInit, SettingsMenuDoit, SettingsMenuTip, SettingsChangeParam, SettingsMenuChangeValue } }; EFI_HII_HANDLE gUmtHiiHandle = NULL; @@ -167,6 +169,7 @@ HandleInput ( break; case SCAN_F12: + ChangeCtxState (Ctx, UMT_STATE_SETTINGS); break; case SCAN_ESC: diff --git a/UefiMonitorTest/UefiMonitorTest.h b/UefiMonitorTest/UefiMonitorTest.h index 185b900..ac8c042 100644 --- a/UefiMonitorTest/UefiMonitorTest.h +++ b/UefiMonitorTest/UefiMonitorTest.h @@ -18,6 +18,7 @@ typedef struct { enum UMT_STATE { UMT_STATE_MAIN_MENU = 0, + UMT_STATE_SETTINGS, UMT_STATE_END }; diff --git a/UefiMonitorTest/UefiMonitorTest.inf b/UefiMonitorTest/UefiMonitorTest.inf index d383cf3..73afa34 100644 --- a/UefiMonitorTest/UefiMonitorTest.inf +++ b/UefiMonitorTest/UefiMonitorTest.inf @@ -11,6 +11,7 @@ UefiMonitorTest.c Graphics.c MainMenu.c + SettingsMenu.c UefiMonitorTestStrings.uni [Packages] |