2014-11-24 20:55:49 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
|
|
|
|
|
|
|
#ifndef HEADER_Platform
|
|
|
|
#define HEADER_Platform
|
|
|
|
/*
|
|
|
|
htop - unsupported/Platform.h
|
|
|
|
(C) 2014 Hisham H. Muhammad
|
2015-07-12 16:26:33 +00:00
|
|
|
(C) 2015 David C. Hunt
|
2014-11-24 20:55:49 +00:00
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Action.h"
|
2015-02-23 03:59:24 +00:00
|
|
|
#include "BatteryMeter.h"
|
2016-02-14 13:45:47 +00:00
|
|
|
#include "SignalsPanel.h"
|
2015-02-23 03:59:24 +00:00
|
|
|
#include "UnsupportedProcess.h"
|
2014-11-24 20:55:49 +00:00
|
|
|
|
2016-02-14 13:45:47 +00:00
|
|
|
extern SignalItem Platform_signals[];
|
|
|
|
|
|
|
|
extern unsigned int Platform_numberOfSignals;
|
|
|
|
|
2015-07-12 16:26:33 +00:00
|
|
|
extern ProcessField Platform_defaultFields[];
|
|
|
|
|
|
|
|
extern ProcessFieldData Process_fields[];
|
2014-11-24 20:55:49 +00:00
|
|
|
|
2014-11-27 21:18:14 +00:00
|
|
|
extern MeterClass* Platform_meterTypes[];
|
|
|
|
|
2015-07-12 16:26:33 +00:00
|
|
|
void Platform_setBindings(Htop_Action* keys);
|
|
|
|
|
|
|
|
extern int Platform_numberOfFields;
|
2016-02-14 13:45:47 +00:00
|
|
|
|
|
|
|
extern char Process_pidFormat[20];
|
|
|
|
|
|
|
|
extern ProcessPidColumn Process_pidColumns[];
|
2015-07-12 16:26:33 +00:00
|
|
|
|
2014-11-27 21:41:14 +00:00
|
|
|
int Platform_getUptime();
|
2014-11-24 20:55:49 +00:00
|
|
|
|
2014-11-27 22:03:29 +00:00
|
|
|
void Platform_getLoadAverage(double* one, double* five, double* fifteen);
|
|
|
|
|
2015-02-23 03:59:24 +00:00
|
|
|
int Platform_getMaxPid();
|
|
|
|
|
2015-07-12 16:26:33 +00:00
|
|
|
double Platform_setCPUValues(Meter* this, int cpu);
|
|
|
|
|
|
|
|
void Platform_setMemoryValues(Meter* this);
|
|
|
|
|
|
|
|
void Platform_setSwapValues(Meter* this);
|
|
|
|
|
|
|
|
bool Process_isThread(Process* this);
|
|
|
|
|
2016-02-02 11:11:41 +00:00
|
|
|
char* Platform_getProcessEnv(pid_t pid);
|
2015-07-12 16:26:33 +00:00
|
|
|
|
2014-11-24 20:55:49 +00:00
|
|
|
#endif
|