aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/actions.h
blob: c6a70318ae1c498a961f382ab94c7c777932fa4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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 execute(VOID);
BOOLEAN mark(VOID);
BOOLEAN edit(VOID);
BOOLEAN hexedit(VOID);
BOOLEAN show_filesystems(VOID);
BOOLEAN do_nothing(VOID);
BOOLEAN quit(VOID);

#endif /* UFM_ACTIONS_H */