From 8c8326f793549dcc685f0e4ec3e29f1f3790d6d8 Mon Sep 17 00:00:00 2001 From: Tobias Tschinkowitz Date: Fri, 18 May 2018 14:43:04 +0200 Subject: Add battery_remaining function on OpenBSD Implementation of a battery_remaining function which returns the remaining battery time in HH:MM format. Linux function still needs implementation. Move common code to load_apm_power_info --- slstatus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'slstatus.h') diff --git a/slstatus.h b/slstatus.h index 6a25209..abe28d3 100644 --- a/slstatus.h +++ b/slstatus.h @@ -3,6 +3,7 @@ /* battery */ const char *battery_perc(const char *); const char *battery_state(const char *); +const char *battery_remaining(const char*); /* cpu */ const char *cpu_freq(void); -- cgit v1.2.3