summaryrefslogtreecommitdiff
path: root/src/text.h
blob: ff6ead7ebbcc2443cfac58cc61646dd2454a12f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _DWXINFO_TEXT_H_
#define _DWXINFO_TEXT_H_

#include <stdio.h>
#include <time.h>

#define TEXT_SIZE 512

struct text {
    time_t last_update;
    char value[TEXT_SIZE];

    struct battery * battery;
    struct pulse * pulse;
    struct time * time;
};

struct text * text_new();
void text_free(struct text *);

void text_update(struct text *);

#endif