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/DarwinProcessList.h | |
parent | 70e7c8db592408f45b958238d4bbf0048886f6fc (diff) |
Start supporting actual data
Diffstat (limited to 'darwin/DarwinProcessList.h')
-rw-r--r-- | darwin/DarwinProcessList.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/darwin/DarwinProcessList.h b/darwin/DarwinProcessList.h index ccdf718f..6a4bb094 100644 --- a/darwin/DarwinProcessList.h +++ b/darwin/DarwinProcessList.h @@ -9,7 +9,25 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ +#include <mach/mach_host.h> +#include <sys/sysctl.h> +typedef struct DarwinProcessList_ { + ProcessList super; + + host_basic_info_data_t prev_hinfo; + vm_statistics64_data_t prev_vminfo; + processor_info_data_t prev_cpus; +} DarwinProcessList; + + +void ProcessList_getHostInfo(host_basic_info_data_t *p); + +void ProcessList_getVMInfo(vm_statistics64_data_t *p); + +unsigned ProcessList_getCPUInfo(processor_info_data_t *p); + +struct kinfo_proc *ProcessList_getKInfoProcs(size_t *count); ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId); |