aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/actions.h
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-12-01 19:55:57 +0300
committerJoursoir <chat@joursoir.net>2021-12-01 19:55:57 +0300
commit547e80784f8a4ff5fc558870121cb7da591891fb (patch)
tree36e498b311580c1821d0b3db0dd4694da7744766 /Library/UefiShellUfmCommandLib/actions.h
parent1742773eee5ead8b2a96fc1151c584d24a49d161 (diff)
downloadufm-547e80784f8a4ff5fc558870121cb7da591891fb.tar.gz
ufm-547e80784f8a4ff5fc558870121cb7da591891fb.tar.bz2
ufm-547e80784f8a4ff5fc558870121cb7da591891fb.zip
implement shortcuts and some actions
Diffstat (limited to 'Library/UefiShellUfmCommandLib/actions.h')
-rw-r--r--Library/UefiShellUfmCommandLib/actions.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/UefiShellUfmCommandLib/actions.h b/Library/UefiShellUfmCommandLib/actions.h
new file mode 100644
index 0000000..4a6b113
--- /dev/null
+++ b/Library/UefiShellUfmCommandLib/actions.h
@@ -0,0 +1,28 @@
+#ifndef UFM_ACTIONS_H
+#define UFM_ACTIONS_H
+
+#include <Uefi.h>
+
+enum ACTION_TYPE {
+ ACTION_ROUTINE = 0,
+ ACTION_CMD,
+ ACTION_LAST
+};
+
+struct shortcut {
+ enum ACTION_TYPE type;
+ EFI_INPUT_KEY key;
+ BOOLEAN (*action)(VOID);
+ CHAR16 *button_name;
+ CHAR16 *cmd_name;
+};
+
+BOOLEAN jump_up(VOID);
+BOOLEAN jump_down(VOID);
+BOOLEAN change_panel(VOID);
+BOOLEAN mark(VOID);
+BOOLEAN show_filesystems(VOID);
+BOOLEAN do_nothing(VOID);
+BOOLEAN quit(VOID);
+
+#endif /* UFM_ACTIONS_H */