diff options
Diffstat (limited to 'src/block.h')
| -rw-r--r-- | src/block.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/block.h b/src/block.h index e461e0d..dc1f975 100644 --- a/src/block.h +++ b/src/block.h @@ -92,7 +92,7 @@ typedef struct { // Called to allocate a block with its default state // -typedef block_t *(*block_alloc_t)(const block_scheme_t *scheme); +typedef void (*block_init_t)(block_t *block, const block_scheme_t *scheme); // Called to cleanup a block and free its memory // NOTE: This should NOT free any other block! @@ -106,7 +106,8 @@ typedef int (*block_validate_t)(block_t *block, const block_scheme_t *scheme); struct block_scheme { const char *name; const config_entry_t *entries; - block_alloc_t alloc_fn; + size_t size; + block_init_t init_fn; block_clean_t clean_fn; block_validate_t validate_fn; }; |
