htop/unsupported/UnsupportedProcess.c

34 lines
727 B
C
Raw Normal View History

2015-03-16 06:16:18 +00:00
/*
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>
/*{
2015-07-12 16:26:33 +00:00
#include "Settings.h"
2015-03-16 06:16:18 +00:00
#define Process_delete UnsupportedProcess_delete
}*/
2015-07-12 16:26:33 +00:00
Process* UnsupportedProcess_new(Settings* settings) {
2016-02-02 14:53:02 +00:00
Process* this = xCalloc(1, sizeof(Process));
2015-03-16 06:16:18 +00:00
Object_setClass(this, Class(Process));
2015-07-12 16:26:33 +00:00
Process_init(this, settings);
2015-03-16 06:16:18 +00:00
return this;
}
void UnsupportedProcess_delete(Object* cast) {
2015-07-12 16:26:33 +00:00
Process* this = (Process*) cast;
2015-03-16 06:16:18 +00:00
Object_setClass(this, Class(Process));
Process_done((Process*)cast);
// free platform-specific fields here
free(this);
}