aboutsummaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcess.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 /darwin/DarwinProcess.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 'darwin/DarwinProcess.h')
-rw-r--r--darwin/DarwinProcess.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h
index cf76fa8..98897c9 100644
--- a/darwin/DarwinProcess.h
+++ b/darwin/DarwinProcess.h
@@ -3,14 +3,15 @@
/*
htop - DarwinProcess.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 "Settings.h"
+#include <sys/sysctl.h>
+
#include "DarwinProcessList.h"
+#include "Settings.h"
-#include <sys/sysctl.h>
typedef struct DarwinProcess_ {
Process super;
@@ -20,27 +21,23 @@ typedef struct DarwinProcess_ {
bool taskAccess;
} DarwinProcess;
-extern ProcessClass DarwinProcess_class;
+extern const ProcessClass DarwinProcess_class;
-DarwinProcess* DarwinProcess_new(Settings* settings);
+Process* DarwinProcess_new(const Settings* settings);
void Process_delete(Object* cast);
-bool Process_isThread(Process* this);
-
-void DarwinProcess_setStartTime(Process *proc, struct extern_proc *ep, time_t now);
-
-char *DarwinProcess_getCmdLine(struct kinfo_proc* k, int* basenameOffset);
+bool Process_isThread(const Process* this);
-void DarwinProcess_setFromKInfoProc(Process *proc, struct kinfo_proc *ps, time_t now, bool exists);
+void DarwinProcess_setFromKInfoProc(Process* proc, const struct kinfo_proc* ps, bool exists);
-void DarwinProcess_setFromLibprocPidinfo(DarwinProcess *proc, DarwinProcessList *dpl);
+void DarwinProcess_setFromLibprocPidinfo(DarwinProcess* proc, DarwinProcessList* dpl);
/*
* Scan threads for process state information.
* Based on: http://stackoverflow.com/questions/6788274/ios-mac-cpu-usage-for-thread
* and https://github.com/max-horvath/htop-osx/blob/e86692e869e30b0bc7264b3675d2a4014866ef46/ProcessList.c
*/
-void DarwinProcess_scanThreads(DarwinProcess *dp);
+void DarwinProcess_scanThreads(DarwinProcess* dp);
#endif

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