CPUMeter.h 1004 Bytes
Newer Older
1
/* Do not edit this file. It was automatically generated. */
Hisham Muhammad's avatar
Hisham Muhammad committed
2
3
4
5

#ifndef HEADER_CPUMeter
#define HEADER_CPUMeter
/*
Hisham Muhammad's avatar
Hisham Muhammad committed
6
htop - CPUMeter.h
Hisham Muhammad's avatar
Hisham Muhammad committed
7
(C) 2004-2011 Hisham H. Muhammad
Hisham Muhammad's avatar
Hisham Muhammad committed
8
9
10
11
12
13
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

#include "Meter.h"

14
15
16
17
18
19
20
21
22
23
24
25
26
typedef enum {
   CPU_METER_NICE = 0,
   CPU_METER_NORMAL = 1,
   CPU_METER_KERNEL = 2,
   CPU_METER_IRQ = 3,
   CPU_METER_SOFTIRQ = 4,
   CPU_METER_STEAL = 5,
   CPU_METER_GUEST = 6,
   CPU_METER_IOWAIT = 7,
   CPU_METER_ITEMCOUNT = 8, // number of entries in this enum
} CPUMeterValues;


Hisham Muhammad's avatar
Hisham Muhammad committed
27
extern int CPUMeter_attributes[];
Hisham Muhammad's avatar
Hisham Muhammad committed
28

29
30
31
32
33
34
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#ifndef MAX
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
Hisham Muhammad's avatar
Hisham Muhammad committed
35

36
extern MeterClass CPUMeter_class;
37

38
extern MeterClass AllCPUsMeter_class;
39

40
extern MeterClass AllCPUs2Meter_class;
41

42
extern MeterClass LeftCPUsMeter_class;
43

44
extern MeterClass RightCPUsMeter_class;
45

46
extern MeterClass LeftCPUs2Meter_class;
47

48
extern MeterClass RightCPUs2Meter_class;
49
50


Hisham Muhammad's avatar
Hisham Muhammad committed
51
#endif