aboutsummaryrefslogtreecommitdiffstats
path: root/MainPanel.h
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2018-04-11 01:26:28 +0200
committerDaniel Lange <DLange@git.local>2018-04-11 01:26:28 +0200
commitc60f4cf3c1d91bd786db8e081699f420f44631f3 (patch)
treeb30ce33fd0d49398b52bf9a90b42304a7c32455a /MainPanel.h
parent2ee50d030178cede83eb9d0005fbc19f819d30fe (diff)
downloaddebian_htop-c60f4cf3c1d91bd786db8e081699f420f44631f3.tar.gz
debian_htop-c60f4cf3c1d91bd786db8e081699f420f44631f3.tar.bz2
debian_htop-c60f4cf3c1d91bd786db8e081699f420f44631f3.zip
New upstream version 2.2.0
Diffstat (limited to 'MainPanel.h')
-rw-r--r--MainPanel.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/MainPanel.h b/MainPanel.h
index f4671f3..8849659 100644
--- a/MainPanel.h
+++ b/MainPanel.h
@@ -21,7 +21,12 @@ typedef struct MainPanel_ {
pid_t pidSearch;
} MainPanel;
-typedef bool(*MainPanel_ForeachProcessFn)(Process*, size_t);
+typedef union {
+ int i;
+ void* v;
+} Arg;
+
+typedef bool(*MainPanel_ForeachProcessFn)(Process*, Arg);
#define MainPanel_getFunctionBar(this_) (((Panel*)(this_))->defaultBar)
@@ -34,7 +39,7 @@ int MainPanel_selectedPid(MainPanel* this);
const char* MainPanel_getValue(MainPanel* this, int i);
-bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, size_t arg, bool* wasAnyTagged);
+bool MainPanel_foreachProcess(MainPanel* this, MainPanel_ForeachProcessFn fn, Arg arg, bool* wasAnyTagged);
extern PanelClass MainPanel_class;

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