summaryrefslogtreecommitdiffstats
path: root/unsupported/Platform.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-11-19 12:32:07 +1100
committerNathan Scott <nathans@redhat.com>2020-11-19 12:32:07 +1100
commitc75c5ef9c6631127e5c0f3ace4b59e4acadd04e5 (patch)
treeb34cc2a215743f92f063bb4e1578a6888181992a /unsupported/Platform.c
parent329011bb982b7dda02e6901173e6fc34bcaa2645 (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 'unsupported/Platform.c')
-rw-r--r--unsupported/Platform.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 6646398d..793a73e3 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;
}

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