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

Work on fixing build of "unsupported" platform

parent aed9b9d1
...@@ -42,11 +42,13 @@ linux/LinuxProcess.h linux/LinuxProcessList.h linux/LinuxCRT.h linux/Battery.h ...@@ -42,11 +42,13 @@ linux/LinuxProcess.h linux/LinuxProcessList.h linux/LinuxCRT.h linux/Battery.h
endif endif
if HTOP_UNSUPPORTED if HTOP_UNSUPPORTED
myhtopplatsources = unsupported/Platform.c unsupported/UnsupportedProcessList.c \ myhtopplatsources = unsupported/Platform.c \
unsupported/UnsupportedCRT.c unsupported/UnsupportedProcess.c unsupported/UnsupportedProcessList.c \
unsupported/UnsupportedCRT.c unsupported/Battery.c
myhtopplatheaders = unsupported/Platform.h unsupported/UnsupportedProcessList.h \ myhtopplatheaders = unsupported/Platform.h \
unsupported/UnsupportedCRT.h unsupported/UnsupportedProcess.h unsupported/UnsupportedProcessList.h \
unsupported/UnsupportedCRT.h unsupported/Battery.h
endif endif
SUFFIXES = .h SUFFIXES = .h
......
...@@ -18,6 +18,7 @@ in the source distribution for its full text. ...@@ -18,6 +18,7 @@ in the source distribution for its full text.
/*{ /*{
#include "Action.h" #include "Action.h"
#include "BatteryMeter.h" #include "BatteryMeter.h"
#include "UnsupportedProcess.h"
}*/ }*/
void Platform_setBindings(Htop_Action* keys) { void Platform_setBindings(Htop_Action* keys) {
...@@ -59,8 +60,3 @@ int Platform_getMaxPid() { ...@@ -59,8 +60,3 @@ int Platform_getMaxPid() {
return -1; return -1;
} }
void Platform_getBatteryLevel(double* level, ACPresence* isOnAC) {
*level = -1;
*isOnAC = AC_ERROR;
}
...@@ -10,6 +10,8 @@ in the source distribution for its full text. ...@@ -10,6 +10,8 @@ in the source distribution for its full text.
*/ */
#include "Action.h" #include "Action.h"
#include "BatteryMeter.h"
#include "UnsupportedProcess.h"
void Platform_setBindings(Htop_Action* keys); void Platform_setBindings(Htop_Action* keys);
...@@ -17,4 +19,9 @@ extern MeterClass* Platform_meterTypes[]; ...@@ -17,4 +19,9 @@ extern MeterClass* Platform_meterTypes[];
int Platform_getUptime(); int Platform_getUptime();
void Platform_getLoadAverage(double* one, double* five, double* fifteen);
int Platform_getMaxPid();
#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