diff options
author | Nathan Scott <nathans@redhat.com> | 2020-11-19 12:32:07 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-11-19 12:32:07 +1100 |
commit | c75c5ef9c6631127e5c0f3ace4b59e4acadd04e5 (patch) | |
tree | b34cc2a215743f92f063bb4e1578a6888181992a /dragonflybsd/Platform.c | |
parent | 329011bb982b7dda02e6901173e6fc34bcaa2645 (diff) |
Minor cleanups to platform-specific init and done
Move platform-specific code out of the htop.c main function
and into the platform sub-directories - primarily this is
the Linux procfs path check and sensors setup/teardown; not
needed on any other platforms. No functional changes here.
Diffstat (limited to 'dragonflybsd/Platform.c')
-rw-r--r-- | dragonflybsd/Platform.c | 17 |
1 files changed, 13 insertions, 4 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 }; |