summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-27 21:05:30 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-27 21:05:30 -0200
commitd4c26a393212ab0e73688d23b31f0b5331981323 (patch)
tree612d0c30df1cd12792884e373935476addfea172 /unsupported
parentf4c49ff92edcaa880952084c4064257c736480f4 (diff)
parentd20160cb4f698e34121be0672d3f7125b61d5ba6 (diff)
Merge branch 'master' into freebsd
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;
+}
+

© 2014-2024 Faster IT GmbH | imprint | privacy policy