mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 20:24:35 +03:00
Add a stub for the battery meter.
This commit is contained in:
@ -13,7 +13,6 @@ in the source distribution for its full text.
|
||||
#include "TasksMeter.h"
|
||||
#include "LoadAverageMeter.h"
|
||||
#include "UptimeMeter.h"
|
||||
#include "BatteryMeter.h"
|
||||
#include "ClockMeter.h"
|
||||
#include "HostnameMeter.h"
|
||||
|
||||
@ -26,6 +25,7 @@ in the source distribution for its full text.
|
||||
|
||||
/*{
|
||||
#include "Action.h"
|
||||
#include "BatteryMeter.h"
|
||||
}*/
|
||||
|
||||
void Platform_setBindings(Htop_Action* keys) {
|
||||
@ -93,3 +93,10 @@ int Platform_getMaxPid() {
|
||||
}
|
||||
return maxPid;
|
||||
}
|
||||
|
||||
void Platform_getBatteryLevel(double* level, ACPresence* isOnAC) {
|
||||
// TODO
|
||||
*level = -1;
|
||||
*isOnAC = AC_ERROR;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user