CPUMeter.h 977 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
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(C) 2004-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

#include "Meter.h"

#include "ProcessList.h"

#include <stdlib.h>
#include <curses.h>
#include <string.h>
#include <math.h>

#include "debug.h"
#include <assert.h>

Hisham Muhammad's avatar
Hisham Muhammad committed
24
extern int CPUMeter_attributes[];
Hisham Muhammad's avatar
Hisham Muhammad committed
25

Hisham Muhammad's avatar
Hisham Muhammad committed
26
extern MeterType CPUMeter;
Hisham Muhammad's avatar
Hisham Muhammad committed
27

Hisham Muhammad's avatar
Hisham Muhammad committed
28
extern MeterType AllCPUsMeter;
Hisham Muhammad's avatar
Hisham Muhammad committed
29

30
31
32
33
34
35
#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
36

37
void CPUMeter_init(Meter* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
38

39
void CPUMeter_setValues(Meter* this, char* buffer, int size);
Hisham Muhammad's avatar
Hisham Muhammad committed
40
41
42

void CPUMeter_display(Object* cast, RichString* out);

43
44
45
46
void AllCPUsMeter_init(Meter* this);

void AllCPUsMeter_done(Meter* this);

47
48
void AllCPUsMeter_setMode(Meter* this, int mode);

49
50
void AllCPUsMeter_draw(Meter* this, int x, int y, int w);

Hisham Muhammad's avatar
Hisham Muhammad committed
51
#endif