From 0bdade1b6cb40c5bd374a93ac0489058a7421bb5 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 2 May 2023 09:02:22 +1000 Subject: 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. --- CategoriesPanel.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'CategoriesPanel.h') diff --git a/CategoriesPanel.h b/CategoriesPanel.h index 825cd069..1f50b8a0 100644 --- a/CategoriesPanel.h +++ b/CategoriesPanel.h @@ -8,23 +8,20 @@ in the source distribution for its full text. */ #include "Header.h" +#include "Machine.h" #include "Panel.h" -#include "ProcessList.h" #include "ScreenManager.h" -#include "Settings.h" typedef struct CategoriesPanel_ { Panel super; ScreenManager* scr; - - Settings* settings; + Machine* host; Header* header; - ProcessList* pl; } CategoriesPanel; extern const PanelClass CategoriesPanel_class; -CategoriesPanel* CategoriesPanel_new(ScreenManager* scr, Settings* settings, Header* header, ProcessList* pl); +CategoriesPanel* CategoriesPanel_new(ScreenManager* scr, Header* header, Machine* host); #endif -- cgit v1.2.3