2015-03-16 06:13:42 +00:00
|
|
|
#ifndef HEADER_MainPanel
|
|
|
|
#define HEADER_MainPanel
|
|
|
|
/*
|
|
|
|
htop - ColumnsPanel.h
|
|
|
|
(C) 2004-2015 Hisham H. Muhammad
|
2020-08-19 23:35:24 +00:00
|
|
|
(C) 2020 Red Hat, Inc. All Rights Reserved.
|
2021-09-22 09:33:00 +00:00
|
|
|
Released under the GNU GPLv2+, see the COPYING file
|
2015-03-16 06:13:42 +00:00
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2020-10-03 19:20:43 +00:00
|
|
|
#include "config.h" // IWYU pragma: keep
|
|
|
|
|
2020-09-19 11:55:23 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
2015-03-16 06:13:42 +00:00
|
|
|
#include "Action.h"
|
2020-09-13 02:32:31 +00:00
|
|
|
#include "IncSet.h"
|
2020-09-19 11:55:23 +00:00
|
|
|
#include "Object.h"
|
2020-09-13 02:32:31 +00:00
|
|
|
#include "Panel.h"
|
2020-09-19 11:55:23 +00:00
|
|
|
#include "Process.h"
|
|
|
|
|
2015-03-16 06:13:42 +00:00
|
|
|
|
|
|
|
typedef struct MainPanel_ {
|
|
|
|
Panel super;
|
|
|
|
State* state;
|
2015-03-23 01:39:33 +00:00
|
|
|
IncSet* inc;
|
2020-10-31 22:28:02 +00:00
|
|
|
Htop_Action* keys;
|
2015-03-16 06:13:42 +00:00
|
|
|
pid_t pidSearch;
|
|
|
|
} MainPanel;
|
|
|
|
|
2018-02-18 13:38:49 +00:00
|
|
|
typedef bool(*MainPanel_ForeachProcessFn)(Process*, Arg);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2015-03-23 20:04:53 +00:00
|
|
|
#define MainPanel_getFunctionBar(this_) (((Panel*)(this_))->defaultBar)
|
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
void MainPanel_updateTreeFunctions(MainPanel* this, bool mode);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
int MainPanel_selectedPid(MainPanel* this);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, Arg arg, bool* wasAnyTagged);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2020-10-05 11:19:50 +00:00
|
|
|
extern const PanelClass MainPanel_class;
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2020-09-08 12:28:34 +00:00
|
|
|
MainPanel* MainPanel_new(void);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
void MainPanel_setState(MainPanel* this, State* state);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
2020-09-02 07:38:44 +00:00
|
|
|
void MainPanel_delete(Object* object);
|
2015-03-16 06:13:42 +00:00
|
|
|
|
|
|
|
#endif
|