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 --- darwin/Platform.c | 12 ++++++++++++ darwin/Platform.h | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) (limited to 'darwin') diff --git a/darwin/Platform.c b/darwin/Platform.c index b1f9283d..1f9120cb 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -17,6 +17,7 @@ in the source distribution for its full text. #include "DateMeter.h" #include "DateTimeMeter.h" #include "HostnameMeter.h" +#include "ProcessLocksScreen.h" #include "UptimeMeter.h" #include "zfs/ZfsArcMeter.h" #include "zfs/ZfsCompressedArcMeter.h" @@ -311,6 +312,17 @@ char* Platform_getProcessEnv(pid_t pid) { return 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/darwin/Platform.h b/darwin/Platform.h index 471b38a9..2eb34372 100644 --- a/darwin/Platform.h +++ b/darwin/Platform.h @@ -8,12 +8,17 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include +#include + #include "Action.h" -#include "SignalsPanel.h" -#include "CPUMeter.h" -#include "DiskIOMeter.h" #include "BatteryMeter.h" +#include "CPUMeter.h" #include "DarwinProcess.h" +#include "DiskIOMeter.h" +#include "ProcessLocksScreen.h" +#include "SignalsPanel.h" + extern ProcessField Platform_defaultFields[]; @@ -49,6 +54,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