summaryrefslogtreecommitdiffstats
path: root/unsupported
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-11-27 21:02:52 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-11-27 21:04:57 -0200
commit430c7c9a9b2301fbe574cd9ca6919ed80d6f17a2 (patch)
tree54a2c6e0a39015b4ef22bcd711aee2abd0dfec6a /unsupported
parentb4f6b110925a56d0818034ad1ecce8214ac873a0 (diff)
Move platform-dependent parts of Linux battery meter.
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