summaryrefslogtreecommitdiffstats
path: root/unsupported/UnsupportedProcess.c
blob: be41a4b90e1a570fcf6f591479557dbcc7398402 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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