diff options
author | Nathan Scott <nathans@redhat.com> | 2023-05-02 09:02:22 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2023-05-08 13:06:07 +1000 |
commit | 0bdade1b6cb40c5bd374a93ac0489058a7421bb5 (patch) | |
tree | 0e0225f7dbf6867402c5ed3481a705d01941f42e /ScreenManager.h | |
parent | e4ebe18b67c366d367231a1123b057c82018cf5b (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 'ScreenManager.h')
-rw-r--r-- | ScreenManager.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ScreenManager.h b/ScreenManager.h index d08a9413..37821bb4 100644 --- a/ScreenManager.h +++ b/ScreenManager.h @@ -11,8 +11,8 @@ in the source distribution for its full text. #include "Action.h" #include "Header.h" +#include "Machine.h" #include "Panel.h" -#include "Settings.h" #include "Vector.h" @@ -25,12 +25,12 @@ typedef struct ScreenManager_ { const char* name; int panelCount; Header* header; - const Settings* settings; + Machine* host; State* state; bool allowFocusChange; } ScreenManager; -ScreenManager* ScreenManager_new(Header* header, const Settings* settings, State* state, bool owner); +ScreenManager* ScreenManager_new(Header* header, Machine* host, State* state, bool owner); void ScreenManager_delete(ScreenManager* this); |