File: display.h

package info (click to toggle)
ptop 3.6.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,356 kB
  • ctags: 2,292
  • sloc: ansic: 18,216; sh: 3,493; makefile: 122; awk: 44
file content (47 lines) | stat: -rw-r--r-- 1,349 bytes parent folder | download | duplicates (3)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
/* interface declaration for display.c */

#ifndef _DISPLAY_H
#define _DISPLAY_H

#include "machine.h"

/* "type" argument for new_message function */

#define  MT_standout  1
#define  MT_delayed   2

int			display_resize();
int			display_init(struct statics * statics);
void		i_loadave(int mpid, double *avenrun);
void		u_loadave(int mpid, double *avenrun);
void		i_minibar(int (*) (char *, int));
void		u_minibar(int (*) (char *, int));
void		i_uptime(time_t * bt, time_t * tod);
void		u_uptime(time_t * bt, time_t * tod);
void		i_timeofday(time_t * tod);
void		i_procstates(int total, int *brkdn);
void		u_procstates(int total, int *brkdn);
void		i_cpustates(int64_t *states);
void		u_cpustates(int64_t *states);
void		z_cpustates();
void		i_memory(long *stats);
void		u_memory(long *stats);
void		i_swap(long *stats);
void		u_swap(long *stats);
void		i_message();
void		u_message();
void		i_header(char *text);
void		u_header(char *text);
void		i_process(int line, char *thisline);
void		u_process(int line, char *newline);
void		u_endscreen(int hi);
void		display_header(int t);
void		new_message(int type, char *msgfmt,...);
void		display_error_message(char *msgfmt,...);
void		clear_message();
int			readline(char *buffer, int size, int numeric);
void		display_pagerstart();
void		display_pagerend();
void		display_pager(char *data);

#endif