mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Added darwin with working battery meter
This commit is contained in:

committed by
Hisham Muhammad

parent
feb7a01fd3
commit
70e7c8db59
33
darwin/DarwinProcess.c
Normal file
33
darwin/DarwinProcess.c
Normal file
@ -0,0 +1,33 @@
|
||||
/*
|
||||
htop - DarwinProcess.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 "DarwinProcess.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
/*{
|
||||
#include "Settings.h"
|
||||
|
||||
#define Process_delete UnsupportedProcess_delete
|
||||
|
||||
}*/
|
||||
|
||||
Process* DarwinProcess_new(Settings* settings) {
|
||||
Process* this = calloc(sizeof(Process), 1);
|
||||
Object_setClass(this, Class(Process));
|
||||
Process_init(this, settings);
|
||||
return this;
|
||||
}
|
||||
|
||||
void DarwinProcess_delete(Object* cast) {
|
||||
Process* this = (Process*) cast;
|
||||
Object_setClass(this, Class(Process));
|
||||
Process_done((Process*)cast);
|
||||
// free platform-specific fields here
|
||||
free(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user