Commit c29e53c5 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Add a stub for the battery meter.

parent d4c26a39
...@@ -13,7 +13,6 @@ in the source distribution for its full text. ...@@ -13,7 +13,6 @@ in the source distribution for its full text.
#include "TasksMeter.h" #include "TasksMeter.h"
#include "LoadAverageMeter.h" #include "LoadAverageMeter.h"
#include "UptimeMeter.h" #include "UptimeMeter.h"
#include "BatteryMeter.h"
#include "ClockMeter.h" #include "ClockMeter.h"
#include "HostnameMeter.h" #include "HostnameMeter.h"
...@@ -26,6 +25,7 @@ in the source distribution for its full text. ...@@ -26,6 +25,7 @@ in the source distribution for its full text.
/*{ /*{
#include "Action.h" #include "Action.h"
#include "BatteryMeter.h"
}*/ }*/
void Platform_setBindings(Htop_Action* keys) { void Platform_setBindings(Htop_Action* keys) {
...@@ -93,3 +93,10 @@ int Platform_getMaxPid() { ...@@ -93,3 +93,10 @@ int Platform_getMaxPid() {
} }
return maxPid; return maxPid;
} }
void Platform_getBatteryLevel(double* level, ACPresence* isOnAC) {
// TODO
*level = -1;
*isOnAC = AC_ERROR;
}
...@@ -10,6 +10,7 @@ in the source distribution for its full text. ...@@ -10,6 +10,7 @@ in the source distribution for its full text.
*/ */
#include "Action.h" #include "Action.h"
#include "BatteryMeter.h"
void Platform_setBindings(Htop_Action* keys); void Platform_setBindings(Htop_Action* keys);
...@@ -21,4 +22,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen); ...@@ -21,4 +22,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen);
int Platform_getMaxPid(); int Platform_getMaxPid();
void Platform_getBatteryLevel(double* level, ACPresence* isOnAC);
#endif #endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment