summaryrefslogtreecommitdiff
path: root/src/modules/battery.h
diff options
context:
space:
mode:
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