summaryrefslogtreecommitdiffstats
path: root/unsupported
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 /unsupported
parent17eeb7573abe504a63e10621d67cae65e2f620aa (diff)
parent82a69ee87af4aec4b5520d55c4949f287f4e6708 (diff)
Merge branch 'cleanup-init-done' into master
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c19
-rw-r--r--unsupported/Platform.h8
2 files changed, 19 insertions, 8 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 5bf1a2de..ee36d9c1 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -88,18 +88,25 @@ const MeterClass* const Platform_meterTypes[] = {
NULL
};
-void Platform_setBindings(Htop_Action* keys) {
- (void) keys;
-}
-
int Platform_numberOfFields = 100;
-extern char Process_pidFormat[20];
-
ProcessPidColumn Process_pidColumns[] = {
{ .id = 0, .label = 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() {
return 0;
}
diff --git a/unsupported/Platform.h b/unsupported/Platform.h
index c75a283a..d3f5d72a 100644
--- a/unsupported/Platform.h
+++ b/unsupported/Platform.h
@@ -25,14 +25,18 @@ extern ProcessFieldData Process_fields[];
extern const MeterClass* const Platform_meterTypes[];
-void Platform_setBindings(Htop_Action* keys);
-
extern int Platform_numberOfFields;
extern char Process_pidFormat[20];
extern ProcessPidColumn Process_pidColumns[];
+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