summaryrefslogtreecommitdiff
path: root/src/modules/battery.h
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2025-09-10 19:37:28 +0100
committerSam Light <sam@lightscale.co.uk>2025-09-10 19:37:28 +0100
commit4d3e462531d2172cb13319c7f79c0e2228e652fa (patch)
tree6381426e806b30814890e74085afef17e3ee78f3 /src/modules/battery.h
parentb74a383e6ded85c122f98137936d78f768f8f938 (diff)
Big update
Diffstat (limited to 'src/modules/battery.h')
-rw-r--r--src/modules/battery.h15
1 files changed, 5 insertions, 10 deletions
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 <stdio.h>
-
-#define BATTERY_VALUE_SIZE 5
-
-struct battery {
- int full;
- int file_current;
-
- char value[BATTERY_VALUE_SIZE];
-};
+#include <time.h>
+#include <stdbool.h>
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