xref: /freebsd/usr.bin/top/display.h (revision a90b9d0159070121c221b966469c3e36d912bf82)
1 /* constants needed for display.c */
2 
3 #define  MT_standout  1
4 #define  MT_delayed   2
5 
6 #include <sys/time.h>
7 struct statics;
8 
9 int		 display_updatecpus(struct statics *statics);
10 void	 clear_message(void);
11 int		 display_resize(void);
12 void	 i_header(const char *text);
13 void	 display_header(int t);
14 int		 display_init(struct statics *statics);
15 void	 i_arc(int *stats);
16 void	 i_battery(int nbat, int batt);
17 void	 i_carc(int *stats);
18 void	 i_cpustates(int *states);
19 void	 i_loadave(int mpid, double *avenrun);
20 void	 i_memory(int *stats);
21 void	 i_message(void);
22 void	 i_process(int line, char *thisline);
23 void	 i_procstates(int total, int *brkdn);
24 void	 i_swap(int *stats);
25 void	 i_timeofday(time_t *tod);
26 void	 i_uptime(struct timeval *bt, time_t *tod);
27 void	 new_message(int type, const char *msgfmt, ...);
28 int	 readline(char *buffer, int size, int numeric);
29 char	*trim_header(const char *text);
30 void	 u_arc(int *stats);
31 void	 u_carc(int *stats);
32 void	 u_cpustates(int *states);
33 void	 u_endscreen(int hi);
34 void	 u_header(const char *text);
35 void	 u_loadave(int mpid, double *avenrun);
36 void	 u_memory(int *stats);
37 void	 u_message(void);
38 void	 u_process(int line, char *newline);
39 void	 u_procstates(int total, int *brkdn);
40 void	 u_swap(int *stats);
41 void	 z_cpustates(void);
42