summaryrefslogtreecommitdiffstats
path: root/unsupported/UnsupportedProcess.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-16 03:16:18 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-16 03:16:18 -0300
commitddbb71d1c8c78183fa92a981fef9856afff67bce (patch)
tree4a96b4e948d1fd0618ac69262b96b49723f0c760 /unsupported/UnsupportedProcess.c
parentadbfe3c3f171af332322d61f2a4912f36b57edda (diff)
Add files to unsupported platform.
Diffstat (limited to 'unsupported/UnsupportedProcess.c')
-rw-r--r--unsupported/UnsupportedProcess.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/unsupported/UnsupportedProcess.c b/unsupported/UnsupportedProcess.c
new file mode 100644
index 00000000..be41a4b9
--- /dev/null
+++ b/unsupported/UnsupportedProcess.c
@@ -0,0 +1,37 @@
+/*
+htop - UnsupportedProcess.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 "UnsupportedProcess.h"
+#include <stdlib.h>
+
+/*{
+
+typedef struct UnsupportedProcess_ {
+ Process super;
+ // add platform-specific fields here
+} UnsupportedProcess;
+
+#define Process_delete UnsupportedProcess_delete
+
+}*/
+
+UnsupportedProcess* UnsupportedProcess_new(Settings* settings) {
+ UnsupportedProcess* this = calloc(sizeof(UnsupportedProcess), 1);
+ Object_setClass(this, Class(Process));
+ Process_init(&this->super, settings);
+ return this;
+}
+
+void UnsupportedProcess_delete(Object* cast) {
+ UnsupportedProcess* this = (UnsupportedProcess*) 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