xref: /freebsd/usr.bin/top/commands.h (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1 /*
2  *  Top users/processes display for Unix
3  *  Version 3
4  *
5  *  This program may be freely redistributed,
6  *  but this entire comment MUST remain intact.
7  *
8  *  Copyright (c) 1984, 1989, William LeFebvre, Rice University
9  *  Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
10  *  Copyright (c) 2016, Randy Westlund
11  *
12  * $FreeBSD$
13  */
14 #ifndef COMMANDS_H
15 #define COMMANDS_H
16 
17 void	show_errors(void);
18 int	error_count(void);
19 void	show_help(void);
20 
21 enum cmd_id {
22 	CMD_NONE,
23 	CMD_redraw,
24 	CMD_update,
25 	CMD_quit,
26 	CMD_help,
27 	CMD_grep,
28 	CMD_errors,
29 	CMD_number,
30 	CMD_delay,
31 	CMD_displays,
32 	CMD_kill,
33 	CMD_renice,
34 	CMD_idletog,
35 	CMD_user,
36 	CMD_selftog,
37 	CMD_thrtog,
38 	CMD_viewtog,
39 	CMD_viewsys,
40 	CMD_wcputog,
41 	CMD_showargs,
42 	CMD_jidtog,
43 	CMD_kidletog,
44 	CMD_pcputog,
45 	CMD_jail,
46 	CMD_swaptog,
47 	CMD_order,
48 	CMD_pid	,
49 	CMD_toggletid,
50 };
51 
52 struct command {
53 	char c;
54 	const char * const desc;
55 	bool available_to_dumb;
56 	enum cmd_id id;
57 };
58 
59 extern const struct command all_commands[];
60 
61 #endif /* COMMANDS_H */
62