UnsupportedProcess.c 726 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
/*
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>

/*{
David Hunt's avatar
David Hunt committed
13
#include "Settings.h"
14
15
16
17
18

#define Process_delete UnsupportedProcess_delete

}*/

David Hunt's avatar
David Hunt committed
19
Process* UnsupportedProcess_new(Settings* settings) {
Christian Hesse's avatar
Christian Hesse committed
20
   Process* this = calloc(1, sizeof(Process));
21
   Object_setClass(this, Class(Process));
David Hunt's avatar
David Hunt committed
22
   Process_init(this, settings);
23
24
25
26
   return this;
}

void UnsupportedProcess_delete(Object* cast) {
David Hunt's avatar
David Hunt committed
27
   Process* this = (Process*) cast;
28
29
30
31
32
33
   Object_setClass(this, Class(Process));
   Process_done((Process*)cast);
   // free platform-specific fields here
   free(this);
}