summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcessList.h
blob: 6a4bb094f0b6f78020123d2b2c294d2eb279b747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Do not edit this file. It was automatically generated. */

#ifndef HEADER_DarwinProcessList
#define HEADER_DarwinProcessList
/*
htop - DarwinProcessList.h
(C) 2014 Hisham H. Muhammad
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);

void ProcessList_delete(ProcessList* this);

void ProcessList_goThroughEntries(ProcessList* super);

#endif