diff options
author | Nathan Scott <nathans@redhat.com> | 2020-11-23 17:34:44 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-11-23 17:34:44 +1100 |
commit | 003f2c06a4a346ecfcc9272700a6fa71d381c43e (patch) | |
tree | 03ac4388ba32e929e392e234dd99a19674295ac2 /solaris | |
parent | 17eeb7573abe504a63e10621d67cae65e2f620aa (diff) | |
parent | 82a69ee87af4aec4b5520d55c4949f287f4e6708 (diff) |
Merge branch 'cleanup-init-done' into master
Diffstat (limited to 'solaris')
-rw-r--r-- | solaris/Platform.c | 17 | ||||
-rw-r--r-- | solaris/Platform.h | 8 |
2 files changed, 19 insertions, 6 deletions
diff --git a/solaris/Platform.c b/solaris/Platform.c index cf85a4c8..f3aaa695 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -119,14 +119,23 @@ const MeterClass* const Platform_meterTypes[] = { NULL }; -void Platform_setBindings(Htop_Action* keys) { - (void) keys; -} - int Platform_numberOfFields = LAST_PROCESSFIELD; extern char Process_pidFormat[20]; +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() { int boot_time = 0; int curr_time = time(NULL); 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); |