aboutsummaryrefslogtreecommitdiffstats
path: root/Action.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2020-12-07 10:26:01 +0100
committerDaniel Lange <DLange@git.local>2020-12-07 10:26:01 +0100
commit65357c8c46154de4e4eca14075bfe5523bb5fc14 (patch)
tree8f430ee5a0d5de377c4e7c94e47842a27c70d7e8 /Action.h
parentf80394a20254938142011855f2954b3f63fe5909 (diff)
downloaddebian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.gz
debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.bz2
debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.zip
New upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'Action.h')
-rw-r--r--Action.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/Action.h b/Action.h
index 0ec0537..1251911 100644
--- a/Action.h
+++ b/Action.h
@@ -3,12 +3,19 @@
/*
htop - Action.h
(C) 2015 Hisham H. Muhammad
-Released under the GNU GPL, see the COPYING file
+Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
+#include "config.h" // IWYU pragma: keep
+
+#include <stdbool.h>
+#include <sys/types.h>
+
#include "Header.h"
+#include "Object.h"
#include "Panel.h"
+#include "Process.h"
#include "ProcessList.h"
#include "Settings.h"
#include "UsersTable.h"
@@ -24,16 +31,18 @@ typedef enum {
HTOP_UPDATE_PANELHDR = 0x41, // implies HTOP_REFRESH
} Htop_Reaction;
-typedef Htop_Reaction (*Htop_Action)();
-
typedef struct State_ {
Settings* settings;
UsersTable* ut;
ProcessList* pl;
Panel* panel;
Header* header;
+ bool pauseProcessUpdate;
+ bool hideProcessSelection;
} State;
+typedef Htop_Reaction (*Htop_Action)(State* st);
+
Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess);
bool Action_setUserOnly(const char* userName, uid_t* userId);

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