summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcessList.h
diff options
context:
space:
mode:
authorDavid Hunt <dhunt@iolanthe.attlocal.net>2015-07-13 01:17:14 -0500
committerHisham Muhammad <hisham@gobolinux.org>2015-08-19 13:51:49 -0300
commit43ef703f034be4e347ab94250101cd8f23409952 (patch)
tree157b1c2180b056ef0c1d45bf80c47b3808175689 /darwin/DarwinProcessList.h
parent70e7c8db592408f45b958238d4bbf0048886f6fc (diff)
Start supporting actual data
Diffstat (limited to 'darwin/DarwinProcessList.h')
-rw-r--r--darwin/DarwinProcessList.h18
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);

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