diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-12 23:08:30 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-12 23:08:30 +0200 |
| commit | c6dc8e969c84b1980dcebd5dc3a59d112fa61c53 (patch) | |
| tree | 3ed902af74b7122c5424117b041442a558e35e3c /src/config.h | |
| parent | aac1310ed0b9983a4a4a29ac469405d70465c278 (diff) | |
Start parsing blocks
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 12 |
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; |
