summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-03-04 18:16:49 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-03-04 18:16:49 +0000
commitd6231bab89d634da5564491196b7c478db038505 (patch)
treebfc0bf00b138763eb41132fd27a8f389a78bf3a4 /ProcessList.h
Initial import.
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/ProcessList.h b/ProcessList.h
new file mode 100644
index 00000000..969d4450
--- /dev/null
+++ b/ProcessList.h
@@ -0,0 +1,124 @@
+/* Do not edit this file. It was automatically genarated. */
+
+#ifndef HEADER_ProcessList
+#define HEADER_ProcessList
+/*
+htop - ProcessList.h
+(C) 2004-2006 Hisham H. Muhammad
+Released under the GNU GPL, see the COPYING file
+in the source distribution for its full text.
+*/
+
+#include "Process.h"
+#include "TypedVector.h"
+#include "UsersTable.h"
+#include "Hashtable.h"
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <dirent.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <signal.h>
+#include <stdbool.h>
+#include <sys/utsname.h>
+
+#include "debug.h"
+#include <assert.h>
+
+#ifndef PROCDIR
+#define PROCDIR "/proc"
+#endif
+
+#ifndef PROCSTATFILE
+#define PROCSTATFILE "/proc/stat"
+#endif
+
+#ifndef PROCMEMINFOFILE
+#define PROCMEMINFOFILE "/proc/meminfo"
+#endif
+
+#ifndef MAX_NAME
+#define MAX_NAME 128
+#endif
+
+typedef struct ProcessList_ {
+ TypedVector* processes;
+ TypedVector* processes2;
+ Hashtable* processTable;
+ Process* prototype;
+ UsersTable* usersTable;
+
+ int processorCount;
+ int totalTasks;
+ int runningTasks;
+
+ long int* totalTime;
+ long int* userTime;
+ long int* systemTime;
+ long int* idleTime;
+ long int* niceTime;
+ long int* totalPeriod;
+ long int* userPeriod;
+ long int* systemPeriod;
+ long int* idlePeriod;
+ long int* nicePeriod;
+
+ long int totalMem;
+ long int usedMem;
+ long int freeMem;
+ long int sharedMem;
+ long int buffersMem;
+ long int cachedMem;
+ long int totalSwap;
+ long int usedSwap;
+ long int freeSwap;
+
+ int kernelMajor;
+ int kernelMiddle;
+ int kernelMinor;
+ int kernelTiny;
+
+ ProcessField* fields;
+ ProcessField sortKey;
+ int direction;
+ bool hideThreads;
+ bool shadowOtherUsers;
+ bool hideKernelThreads;
+ bool hideUserlandThreads;
+ bool treeView;
+ bool highlightBaseName;
+ bool highlightMegabytes;
+
+} ProcessList;
+
+
+
+ProcessList* ProcessList_new(UsersTable* usersTable);
+
+void ProcessList_delete(ProcessList* this);
+
+void ProcessList_invertSortOrder(ProcessList* this);
+
+RichString ProcessList_printHeader(ProcessList* this);
+
+void ProcessList_prune(ProcessList* this);
+
+void ProcessList_add(ProcessList* this, Process* p);
+
+void ProcessList_remove(ProcessList* this, Process* p);
+
+Process* ProcessList_get(ProcessList* this, int index);
+
+int ProcessList_size(ProcessList* this);
+
+
+void ProcessList_sort(ProcessList* this);
+
+
+void ProcessList_scan(ProcessList* this);
+
+void ProcessList_dontCrash(int signal);
+
+#endif

© 2014-2024 Faster IT GmbH | imprint | privacy policy