CPUMeter.h 885 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
/*
6
htop - CPUMeter.c
Hisham Muhammad's avatar
Hisham Muhammad committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(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>




27
28
29
30
31
32
#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
33

34
void CPUMeter_init(Meter* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
35

36
void CPUMeter_setValues(Meter* this, char* buffer, int size);
Hisham Muhammad's avatar
Hisham Muhammad committed
37
38
39

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

40
41
42
43
void AllCPUsMeter_init(Meter* this);

void AllCPUsMeter_done(Meter* this);

44
45
void AllCPUsMeter_setMode(Meter* this, int mode);

46
47
void AllCPUsMeter_draw(Meter* this, int x, int y, int w);

Hisham Muhammad's avatar
Hisham Muhammad committed
48
#endif