aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-07-12 23:08:30 +0200
committerFederico Angelilli <code@fedang.net>2024-07-12 23:08:30 +0200
commitc6dc8e969c84b1980dcebd5dc3a59d112fa61c53 (patch)
tree3ed902af74b7122c5424117b041442a558e35e3c /src/config.h
parentaac1310ed0b9983a4a4a29ac469405d70465c278 (diff)
Start parsing blocks
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 70c828c..d76c515 100644
--- a/src/config.h
+++ b/src/config.h
@@ -21,7 +21,19 @@ typedef struct {
size_t offset;
} config_entry_t;
+typedef bool (*config_block_apply_t)(block_t *block, void *result);
+
+typedef struct {
+ const char *type_name;
+ size_t type_size;
+ block_t base;
+ const config_entry_t *entries;
+ config_block_apply_t apply;
+} config_block_t;
+
typedef struct {
+ size_t n_blocks;
+ block_t *blocks;
char *font;
char *monitor;
uint32_t height;