diff options
| author | Federico Angelilli <code@fedang.net> | 2024-09-08 14:42:22 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-09-08 14:42:22 +0200 |
| commit | feae7fb2bed5357a5e685063e3f6ff005bfc0bd5 (patch) | |
| tree | e45b8568ed14bc2cc50d6697439adf25752326df /src/blocks/scheme.h | |
| parent | 43238419974e599a84f17b5faa8fb52401bdfe90 (diff) | |
Add blocks schemes and time config
Diffstat (limited to 'src/blocks/scheme.h')
| -rw-r--r-- | src/blocks/scheme.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/blocks/scheme.h b/src/blocks/scheme.h index b73f181..2bcca97 100644 --- a/src/blocks/scheme.h +++ b/src/blocks/scheme.h @@ -3,14 +3,17 @@ #include "../block.h" -typedef struct block_scheme { +typedef struct block_scheme block_scheme_t; + +typedef bool (*block_scheme_verify_t)(block_t *block, block_scheme_t *scheme); + +struct block_scheme { const char *name; block_t block; size_t size; const config_entry_t *entries; - - bool (*block_scheme_verify_t)(block_t *block, struct block_scheme *scheme); -} block_scheme_t; + block_scheme_verify_t verify; +}; extern const block_scheme_t *block_schemes[]; |
