2014-11-24 20:55:03 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
|
|
|
|
|
|
|
#ifndef HEADER_Action
|
|
|
|
#define HEADER_Action
|
|
|
|
/*
|
|
|
|
htop - Action.h
|
2015-03-21 19:52:54 +00:00
|
|
|
(C) 2015 Hisham H. Muhammad
|
2014-11-24 20:55:03 +00:00
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include "IncSet.h"
|
|
|
|
#include "Settings.h"
|
2015-01-22 01:27:31 +00:00
|
|
|
#include "Header.h"
|
2014-11-24 20:55:03 +00:00
|
|
|
#include "UsersTable.h"
|
2015-01-22 01:27:31 +00:00
|
|
|
#include "ProcessList.h"
|
|
|
|
#include "Panel.h"
|
2014-11-24 20:55:03 +00:00
|
|
|
|
|
|
|
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_ {
|
|
|
|
Settings* settings;
|
|
|
|
UsersTable* ut;
|
2015-01-22 01:27:31 +00:00
|
|
|
ProcessList* pl;
|
|
|
|
Panel* panel;
|
|
|
|
Header* header;
|
2014-11-24 20:55:03 +00:00
|
|
|
} State;
|
|
|
|
|
|
|
|
|
2015-03-23 18:26:56 +00:00
|
|
|
Object* Action_pickFromVector(State* st, Panel* list, int x);
|
2015-01-22 01:27:31 +00:00
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
|
|
|
bool Action_setUserOnly(const char* userName, uid_t* userId);
|
|
|
|
|
|
|
|
// ----------------------------------------
|
|
|
|
|
|
|
|
void Action_setBindings(Htop_Action* keys);
|
|
|
|
|
2014-11-24 20:55:03 +00:00
|
|
|
|
|
|
|
#endif
|