blob: 41fcf58b2614b469e0e5f6b22d082ab1ac4f4124 [file] [log] [blame] [raw]
/* Do not edit this file. It was automatically generated. */
#ifndef HEADER_AixProcess
#define HEADER_AixProcess
/*
htop - AixProcess.h
(C) 2015 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/
#include "Settings.h"
#include <sys/corralid.h> // cid_t
#define Process_delete AixProcess_delete
typedef enum AixProcessFields {
// Add platform-specific fields here, with ids >= 100
WPAR_ID = 100,
LAST_PROCESSFIELD = 101,
} AixProcessField;
typedef struct AixProcess_ {
Process super;
int kernel;
cid_t cid; // WPAR ID
} AixProcess;
#ifndef Process_isKernelThread
#define Process_isKernelThread(_process) (_process->kernel == 1)
#endif
#ifndef Process_isUserlandThread
// XXX
#define Process_isUserlandThread(_process) (false)
#endif
extern ProcessClass AixProcess_class;
extern ProcessFieldData Process_fields[];
extern ProcessPidColumn Process_pidColumns[];
AixProcess* AixProcess_new(Settings* settings);
void AixProcess_delete(Object* cast);
void AixProcess_writeField(Process* this, RichString* str, ProcessField field);
long AixProcess_compare(const void* v1, const void* v2);
#endif