Add -p flag, contributed by Rob Hoelz

This commit is contained in:
Hisham Muhammad
2012-08-10 21:54:41 +00:00
parent 6c71b7ed2d
commit e6c6d7fbf7
5 changed files with 50 additions and 13 deletions

View File

@ -97,6 +97,7 @@ typedef struct ProcessList_ {
uid_t userId;
bool filtering;
const char* incFilter;
Hashtable* pidWhiteList;
int cpuCount;
int totalTasks;
@ -144,7 +145,7 @@ extern const char *ProcessList_treeStrAscii[TREE_STR_COUNT];
extern const char *ProcessList_treeStrUtf8[TREE_STR_COUNT];
ProcessList* ProcessList_new(UsersTable* usersTable);
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList);
void ProcessList_delete(ProcessList* this);