diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-07-13 01:17:14 -0500 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:51:49 -0300 |
commit | 43ef703f034be4e347ab94250101cd8f23409952 (patch) | |
tree | 157b1c2180b056ef0c1d45bf80c47b3808175689 /darwin/DarwinProcess.h | |
parent | 70e7c8db592408f45b958238d4bbf0048886f6fc (diff) |
Start supporting actual data
Diffstat (limited to 'darwin/DarwinProcess.h')
-rw-r--r-- | darwin/DarwinProcess.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/darwin/DarwinProcess.h b/darwin/DarwinProcess.h index 201650d5..65fff6b7 100644 --- a/darwin/DarwinProcess.h +++ b/darwin/DarwinProcess.h @@ -10,13 +10,23 @@ in the source distribution for its full text. */ #include "Settings.h" - -#define Process_delete DarwinProcess_delete +#include <sys/sysctl.h> Process* DarwinProcess_new(Settings* settings); -void DarwinProcess_delete(Object* cast); +void Process_delete(Object* cast); + +bool Process_isThread(Process* this); + +void DarwinProcess_setStartTime(Process *proc, struct extern_proc *ep, time_t now); + +char *DarwinProcessList_getCmdLine(struct kinfo_proc* k, int show_args ); + +void DarwinProcess_setFromKInfoProc(Process *proc, struct kinfo_proc *ps, time_t now, bool exists); + +void DarwinProcess_setFromLibprocPidinfo(Process *proc, uint64_t total_memory, bool preExisting); +void DarwinProcess_parseThreads(Process *proc, time_t now, bool preExisting); #endif |