From eb229d9aefa622d3ae25fc7c92b9f66590216d8b Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 24 Nov 2014 18:55:03 -0200 Subject: Changes for supporting separate platform subdirectories. --- Action.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Action.h (limited to 'Action.h') diff --git a/Action.h b/Action.h new file mode 100644 index 00000000..5a2ce1ce --- /dev/null +++ b/Action.h @@ -0,0 +1,42 @@ +/* Do not edit this file. It was automatically generated. */ + +#ifndef HEADER_Action +#define HEADER_Action +/* +htop - Action.h +(C) 2014 Hisham H. Muhammad +Released under the GNU GPL, see the COPYING file +in the source distribution for its full text. +*/ + + +#include "IncSet.h" +#include "Settings.h" +#include "UsersTable.h" + +typedef enum { + HTOP_OK = 0x00, + HTOP_REFRESH = 0x01, + HTOP_RECALCULATE = 0x03, // implies HTOP_REFRESH + HTOP_SAVE_SETTINGS = 0x04, + HTOP_KEEP_FOLLOWING = 0x08, + HTOP_QUIT = 0x10, + HTOP_REDRAW_BAR = 0x20, + HTOP_UPDATE_PANELHDR = 0x41, // implies HTOP_REFRESH +} Htop_Reaction; + +typedef Htop_Reaction (*Htop_Action)(); + +typedef struct State_ { + IncSet* inc; + Settings* settings; + UsersTable* ut; +} State; + +typedef bool(*Action_ForeachProcessFn)(Process*, size_t); + + +bool Action_foreachProcess(Panel* panel, Action_ForeachProcessFn fn, int arg, bool* wasAnyTagged); + + +#endif -- cgit v1.2.3