summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-04-06 12:41:36 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-04-06 12:41:36 -0300
commit6fe06fb7e55831ab81594bbac35c200136746830 (patch)
treedd4f71a2b02da7c92c1bd195566c2d0d71dc2095 /unsupported
parent657836a2ae4c250416a258534b3f383d57f61d4c (diff)
Portability: make list of default screens per-platform
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c10
-rw-r--r--unsupported/Platform.h4
2 files changed, 12 insertions, 2 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index ba844191..f487c497 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -29,7 +29,15 @@ const SignalItem Platform_signals[] = {
const unsigned int Platform_numberOfSignals = sizeof(Platform_signals)/sizeof(SignalItem);
-ProcessField Platform_defaultFields[] = { PID, USER, PRIORITY, NICE, M_SIZE, M_RESIDENT, STATE, PERCENT_CPU, PERCENT_MEM, TIME, COMM, 0 };
+ScreenDefaults Platform_defaultScreens[] = {
+ {
+ .name = "Default",
+ .columns = "PID LWPID USER PRIORITY NICE M_SIZE M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command",
+ .sortKey = "PERCENT_CPU",
+ },
+};
+
+const unsigned int Platform_numberOfDefaultScreens = sizeof(Platform_defaultScreens)/sizeof(ScreenDefaults);
ProcessFieldData Process_fields[] = {
[0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, },
diff --git a/unsupported/Platform.h b/unsupported/Platform.h
index 14f3d1a6..0e94abd7 100644
--- a/unsupported/Platform.h
+++ b/unsupported/Platform.h
@@ -19,7 +19,9 @@ extern const SignalItem Platform_signals[];
extern const unsigned int Platform_numberOfSignals;
-extern ProcessField Platform_defaultFields[];
+extern ScreenDefaults Platform_defaultScreens[];
+
+extern const unsigned int Platform_numberOfDefaultScreens;
extern ProcessFieldData Process_fields[];

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