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. --- AffinityPanel.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'AffinityPanel.h') diff --git a/AffinityPanel.h b/AffinityPanel.h index 87b1b850..f5b97b93 100644 --- a/AffinityPanel.h +++ b/AffinityPanel.h @@ -8,14 +8,14 @@ in the source distribution for its full text. */ #include "Affinity.h" +#include "Machine.h" #include "Panel.h" -#include "ProcessList.h" extern const PanelClass AffinityPanel_class; -Panel* AffinityPanel_new(ProcessList* pl, const Affinity* affinity, int* width); +Panel* AffinityPanel_new(Machine* host, const Affinity* affinity, int* width); -Affinity* AffinityPanel_getAffinity(Panel* super, ProcessList* pl); +Affinity* AffinityPanel_getAffinity(Panel* super, Machine* host); #endif -- cgit v1.2.3