summaryrefslogtreecommitdiff
path: root/slstatus.h
diff options
context:
space:
mode:
authorTobias Tschinkowitz <he4d@posteo.de>2018-05-18 14:43:04 +0200
committerAaron Marcher <me@drkhsh.at>2018-05-18 15:25:42 +0200
commit8c8326f793549dcc685f0e4ec3e29f1f3790d6d8 (patch)
tree25f92ed7809ff58df86d84e8f6039a1f6c0f6381 /slstatus.h
parent80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5 (diff)
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
Diffstat (limited to 'slstatus.h')
-rw-r--r--slstatus.h1
1 files changed, 1 insertions, 0 deletions
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);