summaryrefslogtreecommitdiffstats
path: root/solaris/Platform.h
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 /solaris/Platform.h
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 'solaris/Platform.h')
-rw-r--r--solaris/Platform.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/solaris/Platform.h b/solaris/Platform.h
index 051a64da..0c2e44a2 100644
--- a/solaris/Platform.h
+++ b/solaris/Platform.h
@@ -45,12 +45,16 @@ extern ProcessField Platform_defaultFields[];
extern const MeterClass* const Platform_meterTypes[];
-void Platform_setBindings(Htop_Action* keys);
-
extern int Platform_numberOfFields;
extern char Process_pidFormat[20];
+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