summaryrefslogtreecommitdiffstats
path: root/openbsd
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-11-23 17:34:44 +1100
committerNathan Scott <nathans@redhat.com>2020-11-23 17:34:44 +1100
commit003f2c06a4a346ecfcc9272700a6fa71d381c43e (patch)
tree03ac4388ba32e929e392e234dd99a19674295ac2 /openbsd
parent17eeb7573abe504a63e10621d67cae65e2f620aa (diff)
parent82a69ee87af4aec4b5520d55c4949f287f4e6708 (diff)
Merge branch 'cleanup-init-done' into master
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/Platform.c17
-rw-r--r--openbsd/Platform.h8
2 files changed, 19 insertions, 6 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c
index 57b561e3..550e2584 100644
--- a/openbsd/Platform.c
+++ b/openbsd/Platform.c
@@ -89,10 +89,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,
@@ -122,6 +118,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;
+}
+
// preserved from FreeBSD port
int Platform_getUptime() {
struct timeval bootTime, currTime;
diff --git a/openbsd/Platform.h b/openbsd/Platform.h
index a624bb7b..dd5c6529 100644
--- a/openbsd/Platform.h
+++ b/openbsd/Platform.h
@@ -28,10 +28,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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy