xref: /freebsd/usr.bin/top/commands.h (revision f1951fd745b894fe6586c298874af98544a5e272)
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_errors,
28 	CMD_number,
29 	CMD_delay,
30 	CMD_displays,
31 	CMD_kill,
32 	CMD_renice,
33 	CMD_idletog,
34 	CMD_user,
35 	CMD_selftog,
36 	CMD_thrtog,
37 	CMD_viewtog,
38 	CMD_viewsys,
39 	CMD_wcputog,
40 	CMD_showargs,
41 	CMD_jidtog,
42 	CMD_kidletog,
43 	CMD_pcputog,
44 	CMD_jail,
45 	CMD_swaptog,
46 	CMD_order,
47 	CMD_pid	,
48 	CMD_toggletid,
49 };
50 
51 struct command {
52 	char c;
53 	const char * const desc;
54 	bool available_to_dumb;
55 	enum cmd_id id;
56 };
57 
58 extern const struct command all_commands[];
59 
60 #endif /* COMMANDS_H */
61