mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Add files to unsupported platform.
This commit is contained in:
parent
adbfe3c3f1
commit
ddbb71d1c8
8
unsupported/Battery.c
Normal file
8
unsupported/Battery.c
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
#include "BatteryMeter.h"
|
||||
|
||||
void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||
*level = -1;
|
||||
*isOnAC = AC_ERROR;
|
||||
}
|
||||
|
9
unsupported/Battery.h
Normal file
9
unsupported/Battery.h
Normal file
@ -0,0 +1,9 @@
|
||||
/* Do not edit this file. It was automatically generated. */
|
||||
|
||||
#ifndef HEADER_Battery
|
||||
#define HEADER_Battery
|
||||
|
||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||
|
||||
|
||||
#endif
|
37
unsupported/UnsupportedProcess.c
Normal file
37
unsupported/UnsupportedProcess.c
Normal file
@ -0,0 +1,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);
|
||||
}
|
||||
|
24
unsupported/UnsupportedProcess.h
Normal file
24
unsupported/UnsupportedProcess.h
Normal file
@ -0,0 +1,24 @@
|
||||
/* Do not edit this file. It was automatically generated. */
|
||||
|
||||
#ifndef HEADER_UnsupportedProcess
|
||||
#define HEADER_UnsupportedProcess
|
||||
/*
|
||||
htop - UnsupportedProcess.h
|
||||
(C) 2015 Hisham H. Muhammad
|
||||
Released under the GNU GPL, see the COPYING file
|
||||
in the source distribution for its full text.
|
||||
*/
|
||||
|
||||
|
||||
typedef struct UnsupportedProcess_ {
|
||||
Process super;
|
||||
// add platform-specific fields here
|
||||
} UnsupportedProcess;
|
||||
|
||||
#define Process_delete UnsupportedProcess_delete
|
||||
|
||||
|
||||
void UnsupportedProcess_delete(Object* cast);
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user