From c6dc8e969c84b1980dcebd5dc3a59d112fa61c53 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 12 Jul 2024 23:08:30 +0200 Subject: Start parsing blocks --- src/config.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/config.h') 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; -- cgit v1.2.3