summaryrefslogtreecommitdiff
path: root/src/modules/brightness.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/brightness.c')
-rw-r--r--src/modules/brightness.c26
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;
+}