aboutsummaryrefslogtreecommitdiffstats
path: root/linux/Platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux/Platform.h')
-rw-r--r--linux/Platform.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/linux/Platform.h b/linux/Platform.h
index f6ac188..e99d1a2 100644
--- a/linux/Platform.h
+++ b/linux/Platform.h
@@ -7,8 +7,6 @@ Released under the GNU GPLv2+, see the COPYING file
in the source distribution for its full text.
*/
-#include "config.h"
-
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
@@ -23,15 +21,18 @@ in the source distribution for its full text.
#include "Macros.h"
#include "Meter.h"
#include "NetworkIOMeter.h"
+#include "Panel.h"
#include "Process.h"
#include "ProcessLocksScreen.h"
#include "RichString.h"
+#include "Settings.h"
#include "SignalsPanel.h"
#include "CommandLine.h"
#include "generic/gettime.h"
#include "generic/hostname.h"
#include "generic/uname.h"
+
/* GNU/Hurd does not have PATH_MAX in limits.h */
#ifndef PATH_MAX
#define PATH_MAX 4096
@@ -59,7 +60,7 @@ int Platform_getUptime(void);
void Platform_getLoadAverage(double* one, double* five, double* fifteen);
-int Platform_getMaxPid(void);
+pid_t Platform_getMaxPid(void);
double Platform_setCPUValues(Meter* this, unsigned int cpu);
@@ -79,6 +80,8 @@ FileLocks_ProcessData* Platform_getProcessLocks(pid_t pid);
void Platform_getPressureStall(const char* file, bool some, double* ten, double* sixty, double* threehundred);
+void Platform_getFileDescriptors(double* used, double* max);
+
bool Platform_getDiskIO(DiskIOData* data);
bool Platform_getNetworkIO(NetworkIOData* data);
@@ -130,7 +133,7 @@ static inline Hashtable* Platform_dynamicColumns(void) {
static inline void Platform_dynamicColumnsDone(ATTR_UNUSED Hashtable* table) { }
-static inline const char* Platform_dynamicColumnInit(ATTR_UNUSED unsigned int key) {
+static inline const char* Platform_dynamicColumnName(ATTR_UNUSED unsigned int key) {
return NULL;
}
@@ -138,4 +141,16 @@ static inline bool Platform_dynamicColumnWriteField(ATTR_UNUSED const Process* p
return false;
}
+static inline Hashtable* Platform_dynamicScreens(void) {
+ return NULL;
+}
+
+static inline void Platform_defaultDynamicScreens(ATTR_UNUSED Settings* settings) { }
+
+static inline void Platform_addDynamicScreen(ATTR_UNUSED ScreenSettings* ss) { }
+
+static inline void Platform_addDynamicScreenAvailableColumns(ATTR_UNUSED Panel* availableColumns, ATTR_UNUSED const char* screen) { }
+
+static inline void Platform_dynamicScreensDone(ATTR_UNUSED Hashtable* screens) { }
+
#endif

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