Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
c29e53c5
Commit
c29e53c5
authored
Nov 27, 2014
by
Hisham Muhammad
Browse files
Add a stub for the battery meter.
parent
d4c26a39
Changes
2
Hide whitespace changes
Inline
Side-by-side
freebsd/Platform.c
View file @
c29e53c5
...
...
@@ -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
;
}
freebsd/Platform.h
View file @
c29e53c5
...
...
@@ -10,6 +10,7 @@ in the source distribution for its full text.
*/
#include "Action.h"
#include "BatteryMeter.h"
void
Platform_setBindings
(
Htop_Action
*
keys
);
...
...
@@ -21,4 +22,7 @@ void Platform_getLoadAverage(double* one, double* five, double* fifteen);
int
Platform_getMaxPid
();
void
Platform_getBatteryLevel
(
double
*
level
,
ACPresence
*
isOnAC
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment