diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-24 18:55:49 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-11-24 18:55:49 -0200 |
commit | 26422af6088129b99864b75ed4ce5395aa578f2b (patch) | |
tree | 17894ef39e9191af62d68c47efe25459ef52233f /unsupported/UnsupportedProcessList.c | |
parent | eb229d9aefa622d3ae25fc7c92b9f66590216d8b (diff) |
Files moved and added for supporting separate platforms.
Diffstat (limited to 'unsupported/UnsupportedProcessList.c')
-rw-r--r-- | unsupported/UnsupportedProcessList.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/unsupported/UnsupportedProcessList.c b/unsupported/UnsupportedProcessList.c new file mode 100644 index 00000000..6fdca53f --- /dev/null +++ b/unsupported/UnsupportedProcessList.c @@ -0,0 +1,32 @@ +/* +htop - UnsupportedProcessList.c +(C) 2014 Hisham H. Muhammad +Released under the GNU GPL, see the COPYING file +in the source distribution for its full text. +*/ + +#include "ProcessList.h" + +#include <stdlib.h> + +/*{ + +}*/ + +ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList) { + ProcessList* this = calloc(1, sizeof(ProcessList)); + ProcessList_init(this, usersTable, pidWhiteList); + + // Update CPU count: + this->cpuCount = 1; + this->cpus = calloc(1, sizeof(CPUData)); + this->cpus[0].totalTime = 1; + this->cpus[0].totalPeriod = 1; + + return this; +} + +void ProcessList_scan(ProcessList* this) { + (void) this; + // stub! +} |