From 9043e43dc2ab374f60080e5963dc60fd1bddabf3 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 25 Apr 2022 22:51:58 +0300 Subject: add the main menu stubs --- UefiMonitorTest/MainMenu.c | 41 +++++++++++++++++++++++++++++++++++++ UefiMonitorTest/MainMenu.h | 31 ++++++++++++++++++++++++++++ UefiMonitorTest/UefiMonitorTest.c | 3 ++- UefiMonitorTest/UefiMonitorTest.inf | 1 + 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 UefiMonitorTest/MainMenu.c create mode 100644 UefiMonitorTest/MainMenu.h (limited to 'UefiMonitorTest') diff --git a/UefiMonitorTest/MainMenu.c b/UefiMonitorTest/MainMenu.c new file mode 100644 index 0000000..13b5915 --- /dev/null +++ b/UefiMonitorTest/MainMenu.c @@ -0,0 +1,41 @@ +#include "MainMenu.h" + +VOID +MainMenuInit ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +MainMenuDoit ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +MainMenuTip ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +MainMenuKeyRight ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +MainMenuKeyLeft ( + IN UMT_CONTEXT *Ctx + ) +{ + +} diff --git a/UefiMonitorTest/MainMenu.h b/UefiMonitorTest/MainMenu.h new file mode 100644 index 0000000..33d7813 --- /dev/null +++ b/UefiMonitorTest/MainMenu.h @@ -0,0 +1,31 @@ +#ifndef UMT_MAIN_MENU_H +#define UMT_MAIN_MENU_H + +#include "UefiMonitorTest.h" + +VOID +MainMenuInit ( + IN UMT_CONTEXT *Ctx + ); + +VOID +MainMenuDoit ( + IN UMT_CONTEXT *Ctx + ); + +VOID +MainMenuTip ( + IN UMT_CONTEXT *Ctx + ); + +VOID +MainMenuKeyRight ( + IN UMT_CONTEXT *Ctx + ); + +VOID +MainMenuKeyLeft ( + IN UMT_CONTEXT *Ctx + ); + +#endif /* UMT_MAIN_MENU_H */ diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c index 1ac26e2..8c4eb9c 100644 --- a/UefiMonitorTest/UefiMonitorTest.c +++ b/UefiMonitorTest/UefiMonitorTest.c @@ -6,9 +6,10 @@ #include #include "UefiMonitorTest.h" +#include "MainMenu.h" STATIC CONST UMT_STATE_ACTIONS mStateActions[UMT_STATE_END] = { - { NULL, NULL, NULL, NULL, NULL } + { MainMenuInit, MainMenuDoit, MainMenuTip, MainMenuKeyRight, MainMenuKeyLeft } }; STATIC diff --git a/UefiMonitorTest/UefiMonitorTest.inf b/UefiMonitorTest/UefiMonitorTest.inf index 067f27a..df169d9 100644 --- a/UefiMonitorTest/UefiMonitorTest.inf +++ b/UefiMonitorTest/UefiMonitorTest.inf @@ -9,6 +9,7 @@ [Sources] UefiMonitorTest.c Graphics.c + MainMenu.c [Packages] MdePkg/MdePkg.dec -- cgit v1.2.3-18-g5258