From ea9622b8c9444d92007f24fc54597f83c498f11d Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 17 Nov 2020 18:12:38 +1100 Subject: Merge individual Battery.[ch] files into Platform.[ch] Consistent with everything else involving platform-specific calls from core htop code. --- solaris/Battery.c | 8 -------- solaris/Battery.h | 8 -------- solaris/Platform.c | 5 +++++ solaris/Platform.h | 2 ++ 4 files changed, 7 insertions(+), 16 deletions(-) delete mode 100644 solaris/Battery.c delete mode 100644 solaris/Battery.h (limited to 'solaris') diff --git a/solaris/Battery.c b/solaris/Battery.c deleted file mode 100644 index c824df24..00000000 --- a/solaris/Battery.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "Battery.h" - -#include - -void Battery_getData(double* level, ACPresence* isOnAC) { - *level = NAN; - *isOnAC = AC_ERROR; -} diff --git a/solaris/Battery.h b/solaris/Battery.h deleted file mode 100644 index 74a27fc5..00000000 --- a/solaris/Battery.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef HEADER_Battery -#define HEADER_Battery - -#include "BatteryMeter.h" - -void Battery_getData(double* level, ACPresence* isOnAC); - -#endif diff --git a/solaris/Platform.c b/solaris/Platform.c index 2329590f..7eff2d5f 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -301,3 +301,8 @@ bool Platform_getNetworkIO(unsigned long int* bytesReceived, *packetsTransmitted = 0; return false; } + +void Platform_getBattery(double* level, ACPresence* isOnAC) { + *level = NAN; + *isOnAC = AC_ERROR; +} diff --git a/solaris/Platform.h b/solaris/Platform.h index 4d83dc7e..051a64da 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -80,4 +80,6 @@ bool Platform_getNetworkIO(unsigned long int* bytesReceived, unsigned long int* bytesTransmitted, unsigned long int* packetsTransmitted); +void Platform_getBattery(double* level, ACPresence* isOnAC); + #endif -- cgit v1.2.3