summaryrefslogtreecommitdiffstats
path: root/AvailableMetersPanel.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-05-02 09:02:22 +1000
committerNathan Scott <nathans@redhat.com>2023-05-08 13:06:07 +1000
commit0bdade1b6cb40c5bd374a93ac0489058a7421bb5 (patch)
tree0e0225f7dbf6867402c5ed3481a705d01941f42e /AvailableMetersPanel.h
parente4ebe18b67c366d367231a1123b057c82018cf5b (diff)
Introduce Machine class for host-specific info (split from ProcessList)
First stage in sanitizing the process list structure so that htop can support other types of lists too (cgroups, filesystems, ...), in the not-too-distant future. This introduces struct Machine for system-wide information while keeping process-list information in ProcessList (now much less). Next step is to propogate this separation into each platform, to match these core changes.
Diffstat (limited to 'AvailableMetersPanel.h')
-rw-r--r--AvailableMetersPanel.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/AvailableMetersPanel.h b/AvailableMetersPanel.h
index 1c0555af..fad1e6e8 100644
--- a/AvailableMetersPanel.h
+++ b/AvailableMetersPanel.h
@@ -10,18 +10,16 @@ in the source distribution for its full text.
#include <stddef.h>
#include "Header.h"
+#include "Machine.h"
#include "MetersPanel.h"
#include "Panel.h"
-#include "ProcessList.h"
#include "ScreenManager.h"
-#include "Settings.h"
typedef struct AvailableMetersPanel_ {
Panel super;
ScreenManager* scr;
-
- Settings* settings;
+ Machine* host;
Header* header;
size_t columns;
MetersPanel** meterPanels;
@@ -29,6 +27,6 @@ typedef struct AvailableMetersPanel_ {
extern const PanelClass AvailableMetersPanel_class;
-AvailableMetersPanel* AvailableMetersPanel_new(Settings* settings, Header* header, size_t columns, MetersPanel** meterPanels, ScreenManager* scr, const ProcessList* pl);
+AvailableMetersPanel* AvailableMetersPanel_new(Machine* host, Header* header, size_t columns, MetersPanel** meterPanels, ScreenManager* scr);
#endif

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