Platform.h 1.13 KB
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
#include "BatteryMeter.h"
15
#include "SignalsPanel.h"
16
#include "UnsupportedProcess.h"
17

Explorer09's avatar
Explorer09 committed
18
extern const SignalItem Platform_signals[];
19

Explorer09's avatar
Explorer09 committed
20
extern const unsigned int Platform_numberOfSignals;
21

David Hunt's avatar
David Hunt committed
22
23
24
extern ProcessField Platform_defaultFields[];

extern ProcessFieldData Process_fields[];
25

26
27
extern MeterClass* Platform_meterTypes[];

David Hunt's avatar
David Hunt committed
28
29
30
void Platform_setBindings(Htop_Action* keys);

extern int Platform_numberOfFields;
31
32
33
34

extern char Process_pidFormat[20];

extern ProcessPidColumn Process_pidColumns[];
David Hunt's avatar
David Hunt committed
35

36
int Platform_getUptime();
37

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

40
41
int Platform_getMaxPid();

David Hunt's avatar
David Hunt committed
42
43
44
45
46
47
48
49
double Platform_setCPUValues(Meter* this, int cpu);

void Platform_setMemoryValues(Meter* this);

void Platform_setSwapValues(Meter* this);

bool Process_isThread(Process* this);

Hisham's avatar
Hisham committed
50
char* Platform_getProcessEnv(pid_t pid);
David Hunt's avatar
David Hunt committed
51

52
#endif