diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-07-12 13:47:43 -0500 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:47:26 -0300 |
commit | 70e7c8db592408f45b958238d4bbf0048886f6fc (patch) | |
tree | 0ee699faad92f38d29d10b5c9faced3436f0c647 /darwin/DarwinProcess.c | |
parent | feb7a01fd32d4a63b9cfb178c67cc95c05c9dc00 (diff) |
Added darwin with working battery meter
Diffstat (limited to 'darwin/DarwinProcess.c')
-rw-r--r-- | darwin/DarwinProcess.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/darwin/DarwinProcess.c b/darwin/DarwinProcess.c new file mode 100644 index 00000000..7054cf46 --- /dev/null +++ b/darwin/DarwinProcess.c @@ -0,0 +1,33 @@ +/* +htop - DarwinProcess.c +(C) 2015 Hisham H. Muhammad +Released under the GNU GPL, see the COPYING file +in the source distribution for its full text. +*/ + +#include "Process.h" +#include "DarwinProcess.h" +#include <stdlib.h> + +/*{ +#include "Settings.h" + +#define Process_delete UnsupportedProcess_delete + +}*/ + +Process* DarwinProcess_new(Settings* settings) { + Process* this = calloc(sizeof(Process), 1); + Object_setClass(this, Class(Process)); + Process_init(this, settings); + return this; +} + +void DarwinProcess_delete(Object* cast) { + Process* this = (Process*) cast; + Object_setClass(this, Class(Process)); + Process_done((Process*)cast); + // free platform-specific fields here + free(this); +} + |