2014-11-27 18:27:34 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
|
|
|
|
|
|
|
#ifndef HEADER_FreeBSDProcessList
|
|
|
|
#define HEADER_FreeBSDProcessList
|
|
|
|
/*
|
2014-11-27 19:44:55 +00:00
|
|
|
htop - FreeBSDProcessList.h
|
2014-11-27 18:27:34 +00:00
|
|
|
(C) 2014 Hisham H. Muhammad
|
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2014-11-27 19:44:55 +00:00
|
|
|
#include <kvm.h>
|
|
|
|
|
2015-03-16 06:13:42 +00:00
|
|
|
typedef struct CPUData_ {
|
|
|
|
unsigned long long int totalTime;
|
|
|
|
unsigned long long int totalPeriod;
|
|
|
|
} CPUData;
|
|
|
|
|
2014-11-27 19:44:55 +00:00
|
|
|
typedef struct FreeBSDProcessList_ {
|
|
|
|
ProcessList super;
|
|
|
|
kvm_t* kd;
|
2015-03-16 06:13:42 +00:00
|
|
|
|
|
|
|
CPUData* cpus;
|
|
|
|
|
2014-11-27 19:44:55 +00:00
|
|
|
} FreeBSDProcessList;
|
|
|
|
|
|
|
|
|
2015-03-16 06:13:42 +00:00
|
|
|
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId);
|
2014-11-27 18:27:34 +00:00
|
|
|
|
2014-11-27 20:31:39 +00:00
|
|
|
void ProcessList_delete(ProcessList* this);
|
|
|
|
|
2014-11-27 18:27:34 +00:00
|
|
|
void ProcessList_scan(ProcessList* this);
|
|
|
|
|
|
|
|
#endif
|