From 4d3e462531d2172cb13319c7f79c0e2228e652fa Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Sep 2025 19:37:28 +0100 Subject: Big update --- src/modules/battery.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/modules/battery.h') diff --git a/src/modules/battery.h b/src/modules/battery.h index f358e46..44b4086 100644 --- a/src/modules/battery.h +++ b/src/modules/battery.h @@ -1,20 +1,15 @@ #ifndef _DWXINFO_MODULES_BATTERY_H_ #define _DWXINFO_MODULES_BATTERY_H_ -#include - -#define BATTERY_VALUE_SIZE 5 - -struct battery { - int full; - int file_current; - - char value[BATTERY_VALUE_SIZE]; -}; +#include +#include struct battery * battery_new(); void battery_free(struct battery *); void battery_update(struct battery *); +const char * battery_get_val(struct battery *); +bool battery_should_update(struct battery *, time_t, unsigned short); + #endif -- cgit v1.2.3