diff options
| author | Joursoir <chat@joursoir.net> | 2022-04-25 15:58:05 +0300 | 
|---|---|---|
| committer | Joursoir <chat@joursoir.net> | 2022-04-25 15:58:05 +0300 | 
| commit | 7b7d487c9e30fc4a9480209d4b37aa29b7a61ddd (patch) | |
| tree | d4053a1ad66e71fd25c1c3decc5ab81eebec6012 /UefiMonitorTest/UefiMonitorTest.h | |
| parent | fb21722ed2dde51ca04d95e86f44d159673fff2d (diff) | |
| download | umt-7b7d487c9e30fc4a9480209d4b37aa29b7a61ddd.tar.gz umt-7b7d487c9e30fc4a9480209d4b37aa29b7a61ddd.tar.bz2 umt-7b7d487c9e30fc4a9480209d4b37aa29b7a61ddd.zip  | |
implement application context
Diffstat (limited to 'UefiMonitorTest/UefiMonitorTest.h')
| -rw-r--r-- | UefiMonitorTest/UefiMonitorTest.h | 24 | 
1 files changed, 24 insertions, 0 deletions
diff --git a/UefiMonitorTest/UefiMonitorTest.h b/UefiMonitorTest/UefiMonitorTest.h index cda5f8a..6c7e0ed 100644 --- a/UefiMonitorTest/UefiMonitorTest.h +++ b/UefiMonitorTest/UefiMonitorTest.h @@ -4,4 +4,28 @@  #include "Graphics.h" +typedef struct _UMT_CONTEXT UMT_CONTEXT; + +typedef struct { +  VOID (*Init)(UMT_CONTEXT *); +  VOID (*Doit)(UMT_CONTEXT *); +  VOID (*Tip)(UMT_CONTEXT *); + +  VOID (*KeyRight)(UMT_CONTEXT *); +  VOID (*KeyLeft)(UMT_CONTEXT *); +} UMT_STATE_ACTIONS; + +enum UMT_STATE { +  UMT_STATE_MAIN_MENU = 0, +  UMT_STATE_END +}; + +struct _UMT_CONTEXT { +  enum UMT_STATE          State; +  BOOLEAN                 Running; +  BOOLEAN                 ShowTip; +  CONST UMT_STATE_ACTIONS *Actions; +  GRAPHICS_CONTEXT        *Graphics; +}; +  #endif /* UEFI_MONITOR_TEST_H */  | 
