From 18763051a2c5a5d3a39bfabc284b3d72b1f6fc9b Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Wed, 11 Nov 2020 22:15:35 +0100 Subject: Split platform dependent parts for file locks screen --- solaris/Platform.c | 11 +++++++++++ solaris/Platform.h | 17 +++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) (limited to 'solaris') diff --git a/solaris/Platform.c b/solaris/Platform.c index 87247969..8e08c025 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -264,6 +264,17 @@ char* Platform_getProcessEnv(pid_t pid) { return envBuilder.env; } +char* Platform_getInodeFilename(pid_t pid, ino_t inode) { + (void)pid; + (void)inode; + return NULL; +} + +FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid) { + (void)pid; + return NULL; +} + bool Platform_getDiskIO(DiskIOData* data) { // TODO (void)data; diff --git a/solaris/Platform.h b/solaris/Platform.h index 8718dbfe..5db271ce 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -9,14 +9,19 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include +#include +#include +#include +#include +#include + #include "Action.h" #include "BatteryMeter.h" #include "DiskIOMeter.h" +#include "ProcessLocksScreen.h" #include "SignalsPanel.h" -#include -#include -#include -#include + #define kill(pid, signal) kill(pid / 1024, signal) @@ -64,6 +69,10 @@ void Platform_setZfsCompressedArcValues(Meter* this); char* Platform_getProcessEnv(pid_t pid); +char* Platform_getInodeFilename(pid_t pid, ino_t inode); + +FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid); + bool Platform_getDiskIO(DiskIOData* data); bool Platform_getNetworkIO(unsigned long int *bytesReceived, -- cgit v1.2.3