summaryrefslogtreecommitdiffstats
path: root/openbsd/OpenBSDProcess.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd/OpenBSDProcess.h')
-rw-r--r--openbsd/OpenBSDProcess.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/openbsd/OpenBSDProcess.h b/openbsd/OpenBSDProcess.h
new file mode 100644
index 0000000..aac4b31
--- /dev/null
+++ b/openbsd/OpenBSDProcess.h
@@ -0,0 +1,33 @@
+#ifndef HEADER_OpenBSDProcess
+#define HEADER_OpenBSDProcess
+/*
+htop - OpenBSDProcess.h
+(C) 2015 Hisham H. Muhammad
+(C) 2015 Michael McConville
+Released under the GNU GPLv2+, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include <stdbool.h>
+
+#include "Machine.h"
+#include "Object.h"
+#include "Process.h"
+
+
+typedef struct OpenBSDProcess_ {
+ Process super;
+
+ /* 'Kernel virtual addr of u-area' to detect main threads */
+ uint64_t addr;
+} OpenBSDProcess;
+
+extern const ProcessClass OpenBSDProcess_class;
+
+extern const ProcessFieldData Process_fields[LAST_PROCESSFIELD];
+
+Process* OpenBSDProcess_new(const Machine* host);
+
+void Process_delete(Object* cast);
+
+#endif