summaryrefslogtreecommitdiff
path: root/src/modules/battery.h
blob: 44b4086a4f7a8ece89a6cdd1f7791c51076348d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _DWXINFO_MODULES_BATTERY_H_
#define _DWXINFO_MODULES_BATTERY_H_

#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