Move list of signals to platform-specific code.

Implementations for Linux (tested) and FreeBSD (still untested, thanks to @etosan for providing the table).
Darwin and OpenBSD(ping @mmcco) builds should be broken now, pending their own tables.
This commit is contained in:
Hisham Muhammad
2015-10-06 03:02:49 -03:00
parent fbb4c49edd
commit 3fe2f3e28e
4 changed files with 88 additions and 39 deletions

View File

@ -13,11 +13,16 @@ in the source distribution for its full text.
#include "MainPanel.h"
#include "BatteryMeter.h"
#include "LinuxProcess.h"
#include "SignalsPanel.h"
extern ProcessField Platform_defaultFields[];
extern int Platform_numberOfFields;
extern SignalItem Platform_signals[];
extern unsigned int Platform_numberOfSignals;
void Platform_setBindings(Htop_Action* keys);
extern MeterClass* Platform_meterTypes[];