diff options
| author | Federico Angelilli <code@fedang.net> | 2024-09-08 13:07:22 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-09-08 13:07:22 +0200 |
| commit | 43238419974e599a84f17b5faa8fb52401bdfe90 (patch) | |
| tree | 6b27b61d081e4f4c8399b3caf8551d1ba75adf1e /src/blocks/scheme.h | |
| parent | 6d0ce31b0ae5df97d4a340c54b66d95598b336a4 (diff) | |
Refactor config parsing
Diffstat (limited to 'src/blocks/scheme.h')
| -rw-r--r-- | src/blocks/scheme.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/blocks/scheme.h b/src/blocks/scheme.h new file mode 100644 index 0000000..b73f181 --- /dev/null +++ b/src/blocks/scheme.h @@ -0,0 +1,17 @@ +#ifndef COMET_SCHEME_H +#define COMET_SCHEME_H + +#include "../block.h" + +typedef 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; + +extern const block_scheme_t *block_schemes[]; + +#endif |
