Platform.h 973 Bytes
Newer Older
1
2
3
4
5
6
7
/* Do not edit this file. It was automatically generated. */

#ifndef HEADER_Platform
#define HEADER_Platform
/*
htop - unsupported/Platform.h
(C) 2014 Hisham H. Muhammad
David Hunt's avatar
David Hunt committed
8
(C) 2015 David C. Hunt
9
10
11
12
13
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

#include "Action.h"
14
15
#include "BatteryMeter.h"
#include "UnsupportedProcess.h"
16

David Hunt's avatar
David Hunt committed
17
18
19
extern ProcessField Platform_defaultFields[];

extern ProcessFieldData Process_fields[];
20

21
22
extern MeterClass* Platform_meterTypes[];

David Hunt's avatar
David Hunt committed
23
24
25
26
27
void Platform_setBindings(Htop_Action* keys);

extern int Platform_numberOfFields;
extern char* Process_pidFormat;

28
int Platform_getUptime();
29

Hisham Muhammad's avatar
Hisham Muhammad committed
30
31
void Platform_getLoadAverage(double* one, double* five, double* fifteen);

32
33
int Platform_getMaxPid();

David Hunt's avatar
David Hunt committed
34
35
36
37
38
39
40
41
42
43
44
void Process_setupColumnWidths();

double Platform_setCPUValues(Meter* this, int cpu);

void Platform_setMemoryValues(Meter* this);

void Platform_setSwapValues(Meter* this);

bool Process_isThread(Process* this);


45
#endif