#ifndef __defs_h__ #define __defs_h__ #include "list.h" #define ERROR 1 #define NERROR 0 #define COMMANDSTRLENGTH 15 struct __Process { int pid; char command[COMMANDSTRLENGTH+1]; unsigned system; unsigned user; unsigned systemTimeOld; unsigned userTimeOld; struct list_head list; }; struct __CPULoad { unsigned system; unsigned user; unsigned nice; unsigned idle; unsigned sum; unsigned systemTimeOld; unsigned userTimeOld; unsigned niceTimeOld; unsigned idleTimeOld; const char* file; int readError; }; struct __Options { int summarize; int all; float refresh; int mult; int debug; int continuous; int verbose; }; extern struct __CPULoad CPULoad; extern struct __Options Options; extern struct list_head Root; extern int ProcessCount; #endif