diff options
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; |
