diff options
| author | Sam Light <sam@lightscale.co.uk> | 2025-09-10 19:37:28 +0100 |
|---|---|---|
| committer | Sam Light <sam@lightscale.co.uk> | 2025-09-10 19:37:28 +0100 |
| commit | 4d3e462531d2172cb13319c7f79c0e2228e652fa (patch) | |
| tree | 6381426e806b30814890e74085afef17e3ee78f3 /src/modules/brightness.c | |
| parent | b74a383e6ded85c122f98137936d78f768f8f938 (diff) | |
Big update
Diffstat (limited to 'src/modules/brightness.c')
| -rw-r--r-- | src/modules/brightness.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/modules/brightness.c b/src/modules/brightness.c new file mode 100644 index 0000000..47d4148 --- /dev/null +++ b/src/modules/brightness.c @@ -0,0 +1,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; +} |
