diff options
Diffstat (limited to 'dragonflybsd')
-rw-r--r-- | dragonflybsd/Platform.c | 17 | ||||
-rw-r--r-- | dragonflybsd/Platform.h | 8 |
2 files changed, 19 insertions, 6 deletions
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index c6966c11..00fe93ea 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -74,10 +74,6 @@ const SignalItem Platform_signals[] = { const unsigned int Platform_numberOfSignals = ARRAYSIZE(Platform_signals); -void Platform_setBindings(Htop_Action* keys) { - (void) keys; -} - const MeterClass* const Platform_meterTypes[] = { &CPUMeter_class, &ClockMeter_class, @@ -107,6 +103,19 @@ const MeterClass* const Platform_meterTypes[] = { NULL }; +void Platform_init(void) { + /* no platform-specific setup needed */ +} + +void Platform_done(void) { + /* no platform-specific cleanup needed */ +} + +void Platform_setBindings(Htop_Action* keys) { + /* no platform-specific key bindings */ + (void) keys; +} + int Platform_getUptime() { struct timeval bootTime, currTime; int mib[2] = { CTL_KERN, KERN_BOOTTIME }; diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 267b8f37..a05eb641 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -27,10 +27,14 @@ extern const SignalItem Platform_signals[]; extern const unsigned int Platform_numberOfSignals; -void Platform_setBindings(Htop_Action* keys); - extern const MeterClass* const Platform_meterTypes[]; +void Platform_init(void); + +void Platform_done(void); + +void Platform_setBindings(Htop_Action* keys); + int Platform_getUptime(void); void Platform_getLoadAverage(double* one, double* five, double* fifteen); |