File: g15stats.h

package info (click to toggle)
g15stats 1.9.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch, wheezy
  • size: 172 kB
  • ctags: 129
  • sloc: ansic: 1,632; makefile: 23; sh: 7
file content (54 lines) | stat: -rw-r--r-- 991 bytes parent folder | download | duplicates (2)
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
48
49
50
51
52
53
54
#define	TEXT_LEFT	1
#define NUM_BATS	3
#define NUM_PROBES	4

#define MAX_NET_HIST	107

#define MAX_SENSOR      4

#define MAX_MODE        1
#define MAX_SUB_MODE    1

#define PAUSE           6
#define RETRY_COUNT     10

#define	VL_LEFT		42
#define	BAR_START	45
#define	BAR_END		153
#define BAR_BOTTOM      32
#define	TEXT_RIGHT      155
#define	MAX_LINES	128
#define INFO_ROW        37

#define SENSOR_ERROR    -100

#define CHANGE_DOWN     1
#define CHANGE_UP       2
#define CHANGE_MODE     3
#define CHANGE_SUBMODE  4

#define SCREEN_SUMMARY  0
#define SCREEN_CPU      1
#define SCREEN_FREQ     2
#define SCREEN_MEM      3
#define SCREEN_SWAP     4
#define SCREEN_NET      5
#define SCREEN_BAT      6
#define SCREEN_TEMP     7
#define SCREEN_FAN      8
#define SCREEN_NET2     9

#define	MAX_SCREENS	8

typedef struct g15_stats_bat_info
{	
	long	max_charge;
	long	cur_charge;
	long	status;
} g15_stats_bat_info;

typedef struct g15_stats_info
{
	float	cur;
	float	max;
} g15_stats_info;