| /* Do not edit this file. It was automatically generated. */ |
| |
| #ifndef HEADER_darwin_DarwinProcessList |
| #define HEADER_darwin_DarwinProcessList |
| /* |
| htop - darwin/DarwinProcessList.h |
| (C) 2014 Hisham H. Muhammad |
| Released under the GNU GPL, see the COPYING file |
| in the source distribution for its full text. |
| */ |
| |
| |
| /* compare the given os version with the one installed returns: |
| 0 if equals the installed version |
| positive value if less than the installed version |
| negative value if more than the installed version |
| */ |
| #include "ProcessList.h" |
| #include <mach/mach_host.h> |
| #include <sys/types.h> |
| #include <sys/sysctl.h> |
| #include <stdbool.h> |
| #include <stdint.h> |
| |
| typedef struct DarwinProcessList_ { |
| ProcessList super; |
| |
| struct kinfo_proc *kip_buffer; |
| size_t kip_buffer_size; |
| host_basic_info_data_t host_info; |
| vm_statistics_data_t vm_stats; |
| processor_cpu_load_info_t prev_load; |
| processor_cpu_load_info_t curr_load; |
| uint64_t global_diff; |
| bool is_scan_thread_supported; |
| } DarwinProcessList; |
| |
| |
| ProcessList* ProcessList_new(UsersTable* usersTable, const Hashtable *pidWhiteList, uid_t userId); |
| |
| void ProcessList_delete(ProcessList* this); |
| |
| void ProcessList_goThroughEntries(ProcessList* super); |
| |
| #endif |