diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 19:18:14 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-27 19:18:14 -0200 |
commit | 357e7a3243a0e6fbc937354a03639f0cc34b966c (patch) | |
tree | c053aca956193d9e9d60f877f6c2b3a80a91ffea /unsupported | |
parent | b192af006f67369881bfc92c963f3d594e71fe0c (diff) |
Move UptimeMeter into platform-dependent area.
Set up environment to move other meters.
Diffstat (limited to 'unsupported')
-rw-r--r-- | unsupported/Platform.c | 28 | ||||
-rw-r--r-- | unsupported/Platform.h | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c index b65fec40..5e568025 100644 --- a/unsupported/Platform.c +++ b/unsupported/Platform.c @@ -6,6 +6,14 @@ in the source distribution for its full text. */ #include "Platform.h" +#include "CPUMeter.h" +#include "MemoryMeter.h" +#include "SwapMeter.h" +#include "TasksMeter.h" +#include "LoadAverageMeter.h" +#include "BatteryMeter.h" +#include "ClockMeter.h" +#include "HostnameMeter.h" /*{ #include "Action.h" @@ -15,3 +23,23 @@ void Platform_setBindings(Htop_Action* keys) { (void) keys; } +MeterClass* Platform_meterTypes[] = { + &CPUMeter_class, + &ClockMeter_class, + &LoadAverageMeter_class, + &LoadMeter_class, + &MemoryMeter_class, + &SwapMeter_class, + &TasksMeter_class, + &BatteryMeter_class, + &HostnameMeter_class, + &AllCPUsMeter_class, + &AllCPUs2Meter_class, + &LeftCPUsMeter_class, + &RightCPUsMeter_class, + &LeftCPUs2Meter_class, + &RightCPUs2Meter_class, + &BlankMeter_class, + NULL +}; + diff --git a/unsupported/Platform.h b/unsupported/Platform.h index 65a31993..1a2b81f0 100644 --- a/unsupported/Platform.h +++ b/unsupported/Platform.h @@ -13,5 +13,7 @@ in the source distribution for its full text. void Platform_setBindings(Htop_Action* keys); +extern MeterClass* Platform_meterTypes[]; + #endif |