diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-12 01:44:14 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-12 01:44:14 +0100 |
| commit | e85ad7414c063e42296f7ef4e202829567484ac0 (patch) | |
| tree | 25454de6b83a2dd91142c97b4a28add01331b3ea /src/block.h | |
| parent | 686802c2a472746a1b40fab30cbb0351e536c9ba (diff) | |
Fix config and blocks
Diffstat (limited to 'src/block.h')
| -rw-r--r-- | src/block.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/block.h b/src/block.h index d9800ee..b310a36 100644 --- a/src/block.h +++ b/src/block.h @@ -36,6 +36,7 @@ typedef void (*block_event_t)(block_t *block, event_t event); typedef void (*block_update_t)(block_t *block); // Called to cleanup a block and free its memory +// NOTE: This should NOT free any other block! // typedef void (*block_clean_t)(block_t *block); @@ -87,7 +88,7 @@ typedef struct { block_t block; unsigned int spacing; size_t n_children; - struct block **children; + block_t **children; bool collapse; } block_group_t; @@ -100,8 +101,6 @@ typedef struct { void block_update(block_t *block); -void block_copy(block_t *copy, const block_t *block); - void block_free(block_t *block); #endif |
