summaryrefslogtreecommitdiffstats
path: root/solaris/Platform.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-11-17 18:12:38 +1100
committerNathan Scott <nathans@redhat.com>2020-11-18 10:17:33 +1100
commitea9622b8c9444d92007f24fc54597f83c498f11d (patch)
tree13cb45909d2c873b7b09ec59580d6a8db4676b0b /solaris/Platform.c
parente3af8d0d0851dd6ce25446a7f9a99e2127795a78 (diff)
Merge individual Battery.[ch] files into Platform.[ch]
Consistent with everything else involving platform-specific calls from core htop code.
Diffstat (limited to 'solaris/Platform.c')
-rw-r--r--solaris/Platform.c5
1 files changed, 5 insertions, 0 deletions
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;
+}

© 2014-2024 Faster IT GmbH | imprint | privacy policy