aboutsummaryrefslogtreecommitdiffstats
path: root/Library/UefiShellUfmCommandLib/actions.h
blob: 108067812f6200787580b8f1fb4f05f355cc4c62 (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
32
33
34
#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 mv(VOID);
BOOLEAN mkdir(VOID);
BOOLEAN rm(VOID);
BOOLEAN show_filesystems(VOID);
BOOLEAN do_nothing(VOID);
BOOLEAN quit(VOID);

#endif /* UFM_ACTIONS_H */