2015-09-18 00:46:48 -04:00
|
|
|
#ifndef HEADER_OpenBSDProcess
|
|
|
|
#define HEADER_OpenBSDProcess
|
|
|
|
/*
|
|
|
|
htop - OpenBSDProcess.h
|
|
|
|
(C) 2015 Hisham H. Muhammad
|
|
|
|
(C) 2015 Michael McConville
|
2021-09-22 11:33:00 +02:00
|
|
|
Released under the GNU GPLv2+, see the COPYING file
|
2015-09-18 00:46:48 -04:00
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2020-12-05 22:57:07 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "Object.h"
|
|
|
|
#include "Process.h"
|
|
|
|
#include "Settings.h"
|
|
|
|
|
|
|
|
|
2015-09-18 00:46:48 -04:00
|
|
|
typedef struct OpenBSDProcess_ {
|
|
|
|
Process super;
|
2021-03-19 17:34:12 +01:00
|
|
|
|
|
|
|
/* 'Kernel virtual addr of u-area' to detect main threads */
|
|
|
|
uint64_t addr;
|
2015-09-18 00:46:48 -04:00
|
|
|
} OpenBSDProcess;
|
|
|
|
|
2020-10-13 14:35:30 +02:00
|
|
|
extern const ProcessClass OpenBSDProcess_class;
|
2015-09-18 00:46:48 -04:00
|
|
|
|
2020-12-15 19:44:52 +01:00
|
|
|
extern const ProcessFieldData Process_fields[LAST_PROCESSFIELD];
|
2015-09-18 00:46:48 -04:00
|
|
|
|
2020-10-21 21:26:05 +02:00
|
|
|
Process* OpenBSDProcess_new(const Settings* settings);
|
2015-09-18 00:46:48 -04:00
|
|
|
|
|
|
|
void Process_delete(Object* cast);
|
|
|
|
|
|
|
|
#endif
|