aboutsummaryrefslogtreecommitdiffstats
path: root/UefiMonitorTest
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-05-04 20:36:07 +0300
committerJoursoir <chat@joursoir.net>2022-05-04 20:36:07 +0300
commit7e0ef4f0692e4b89fa3bd763900cd38bd56c0187 (patch)
tree496b499e84d5dd9e8cd46a0d7e7cae93a585fa53 /UefiMonitorTest
parent42a1a3f9800e96621a91228918cf24f37639f510 (diff)
downloadumt-7e0ef4f0692e4b89fa3bd763900cd38bd56c0187.tar.gz
umt-7e0ef4f0692e4b89fa3bd763900cd38bd56c0187.tar.bz2
umt-7e0ef4f0692e4b89fa3bd763900cd38bd56c0187.zip
add the settings menu stubs
Diffstat (limited to 'UefiMonitorTest')
-rw-r--r--UefiMonitorTest/SettingsMenu.c45
-rw-r--r--UefiMonitorTest/SettingsMenu.h33
-rw-r--r--UefiMonitorTest/UefiMonitorTest.c5
-rw-r--r--UefiMonitorTest/UefiMonitorTest.h1
-rw-r--r--UefiMonitorTest/UefiMonitorTest.inf1
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]