summaryrefslogtreecommitdiffstats
path: root/darwin/DarwinProcess.c
diff options
context:
space:
mode:
authorDavid Hunt <dhunt@iolanthe.attlocal.net>2015-07-12 13:47:43 -0500
committerHisham Muhammad <hisham@gobolinux.org>2015-08-19 13:47:26 -0300
commit70e7c8db592408f45b958238d4bbf0048886f6fc (patch)
tree0ee699faad92f38d29d10b5c9faced3436f0c647 /darwin/DarwinProcess.c
parentfeb7a01fd32d4a63b9cfb178c67cc95c05c9dc00 (diff)
Added darwin with working battery meter
Diffstat (limited to 'darwin/DarwinProcess.c')
-rw-r--r--darwin/DarwinProcess.c33
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);
+}
+

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