summaryrefslogtreecommitdiff
path: root/src/modules/brightness.c
blob: 47d4148a0962c3e0d07300303c27cc914245f9ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include "brightness.h"

#include <stdlib.h>

#define VALUE_SIZE 5

struct brightness {
    char value[VALUE_SIZE];
};

struct brightness * brightness_new() {
    struct brightness * b = malloc(sizeof(struct brightness));
    return b;
}

void brightness_free(struct brightness * b) {
    free(b);
}

void brightness_update(struct brightness * b) {

}

const char * brightness_get_val(struct brightness * b) {
    return b->value;
}