summaryrefslogtreecommitdiffstats
path: root/darwin
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 /darwin
parent17eeb7573abe504a63e10621d67cae65e2f620aa (diff)
parent82a69ee87af4aec4b5520d55c4949f287f4e6708 (diff)
Merge branch 'cleanup-init-done' into master
Diffstat (limited to 'darwin')
-rw-r--r--darwin/Platform.c13
-rw-r--r--darwin/Platform.h11
2 files changed, 18 insertions, 6 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c
index fe3505e9..09fec45a 100644
--- a/darwin/Platform.c
+++ b/darwin/Platform.c
@@ -131,12 +131,21 @@ const MeterClass* const Platform_meterTypes[] = {
NULL
};
+int Platform_numberOfFields = 100;
+
+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_numberOfFields = 100;
-
int Platform_getUptime() {
struct timeval bootTime, currTime;
int mib[2] = { CTL_KERN, KERN_BOOTTIME };
diff --git a/darwin/Platform.h b/darwin/Platform.h
index 40b7d730..e1f83553 100644
--- a/darwin/Platform.h
+++ b/darwin/Platform.h
@@ -19,20 +19,23 @@ in the source distribution for its full text.
#include "ProcessLocksScreen.h"
#include "SignalsPanel.h"
+extern ProcessFieldData Process_fields[];
extern ProcessField Platform_defaultFields[];
+extern int Platform_numberOfFields;
+
extern const SignalItem Platform_signals[];
extern const unsigned int Platform_numberOfSignals;
-extern ProcessFieldData Process_fields[];
-
extern const MeterClass* const Platform_meterTypes[];
-void Platform_setBindings(Htop_Action* keys);
+void Platform_init(void);
-extern int Platform_numberOfFields;
+void Platform_done(void);
+
+void Platform_setBindings(Htop_Action* keys);
int Platform_getUptime(void);

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