2006-04-10 20:40:38 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#ifndef HEADER_CPUMeter
|
|
|
|
#define HEADER_CPUMeter
|
|
|
|
/*
|
2006-06-06 20:28:42 +00:00
|
|
|
htop - CPUMeter.h
|
2006-03-04 18:16:49 +00:00
|
|
|
(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>
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
extern int CPUMeter_attributes[];
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
extern MeterType CPUMeter;
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
extern MeterType AllCPUsMeter;
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
#ifndef MIN
|
|
|
|
#define MIN(a,b) ((a)<(b)?(a):(b))
|
|
|
|
#endif
|
|
|
|
#ifndef MAX
|
|
|
|
#define MAX(a,b) ((a)>(b)?(a):(b))
|
|
|
|
#endif
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
void CPUMeter_init(Meter* this);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
void CPUMeter_setValues(Meter* this, char* buffer, int size);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
void CPUMeter_display(Object* cast, RichString* out);
|
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
void AllCPUsMeter_init(Meter* this);
|
|
|
|
|
|
|
|
void AllCPUsMeter_done(Meter* this);
|
|
|
|
|
2006-05-09 18:35:51 +00:00
|
|
|
void AllCPUsMeter_setMode(Meter* this, int mode);
|
|
|
|
|
2006-04-10 20:40:38 +00:00
|
|
|
void AllCPUsMeter_draw(Meter* this, int x, int y, int w);
|
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
#endif
|