aboutsummaryrefslogtreecommitdiff
path: root/src/blocks/scheme.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocks/scheme.h')
-rw-r--r--src/blocks/scheme.h11
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[];