htop/unsupported/UnsupportedProcess.c

27 lines
647 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 GPLv2, see the COPYING file
2015-03-16 06:16:18 +00:00
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
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);
}