diff options
author | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:02 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:02 +0100 |
commit | d67ee86091f9e07f8d85c1fb77c7c58989e676bb (patch) | |
tree | 900f5e62bfd8e8c082be75a94f5348dea819beba /openbsd/OpenBSDProcess.h | |
parent | 3cbc50cde37fee19ce98ee8260b0a6095b829c4c (diff) | |
parent | 65357c8c46154de4e4eca14075bfe5523bb5fc14 (diff) | |
download | debian_htop-d67ee86091f9e07f8d85c1fb77c7c58989e676bb.tar.gz debian_htop-d67ee86091f9e07f8d85c1fb77c7c58989e676bb.tar.bz2 debian_htop-d67ee86091f9e07f8d85c1fb77c7c58989e676bb.zip |
Update upstream source from tag 'upstream/3.0.3'
Update to upstream version '3.0.3'
with Debian dir 8a3a733dc80e45b1cde220f88fcfd815869742f0
Diffstat (limited to 'openbsd/OpenBSDProcess.h')
-rw-r--r-- | openbsd/OpenBSDProcess.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/openbsd/OpenBSDProcess.h b/openbsd/OpenBSDProcess.h index fede6f8..2d01513 100644 --- a/openbsd/OpenBSDProcess.h +++ b/openbsd/OpenBSDProcess.h @@ -4,10 +4,17 @@ htop - OpenBSDProcess.h (C) 2015 Hisham H. Muhammad (C) 2015 Michael McConville -Released under the GNU GPL, see the COPYING file +Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include <stdbool.h> + +#include "Object.h" +#include "Process.h" +#include "Settings.h" + + typedef enum OpenBSDProcessFields_ { // Add platform-specific fields here, with ids >= 100 LAST_PROCESSFIELD = 100, @@ -21,20 +28,16 @@ typedef struct OpenBSDProcess_ { #define Process_isUserlandThread(_process) (_process->pid != _process->tgid) -extern ProcessClass OpenBSDProcess_class; +extern const ProcessClass OpenBSDProcess_class; extern ProcessFieldData Process_fields[]; extern ProcessPidColumn Process_pidColumns[]; -OpenBSDProcess* OpenBSDProcess_new(Settings* settings); +Process* OpenBSDProcess_new(const Settings* settings); void Process_delete(Object* cast); -void OpenBSDProcess_writeField(Process* this, RichString* str, ProcessField field); - -long OpenBSDProcess_compare(const void* v1, const void* v2); - -bool Process_isThread(Process* this); +bool Process_isThread(const Process* this); #endif |