summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Platform.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/unsupported/Platform.c b/unsupported/Platform.c
index 764f890e..d8618919 100644
--- a/unsupported/Platform.c
+++ b/unsupported/Platform.c
@@ -11,13 +11,13 @@ in the source distribution for its full text.
#include "SwapMeter.h"
#include "TasksMeter.h"
#include "LoadAverageMeter.h"
-#include "BatteryMeter.h"
#include "ClockMeter.h"
#include "HostnameMeter.h"
#include "UptimeMeter.h"
/*{
#include "Action.h"
+#include "BatteryMeter.h"
}*/
void Platform_setBindings(Htop_Action* keys) {
@@ -58,3 +58,9 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen) {
int Platform_getMaxPid() {
return -1;
}
+
+void Platform_getBatteryLevel(double* level, ACPresence* isOnAC) {
+ *level = -1;
+ *isOnAC = AC_ERROR;
+}
+