From c6dc8e969c84b1980dcebd5dc3a59d112fa61c53 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Fri, 12 Jul 2024 23:08:30 +0200 Subject: Start parsing blocks --- src/block.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/block.h') diff --git a/src/block.h b/src/block.h index 9468373..9c663b1 100644 --- a/src/block.h +++ b/src/block.h @@ -38,16 +38,18 @@ typedef void (*block_update_t)(block_t *block); struct block { block_type_t type; char *label; + bool active; + struct timespec update_interval; + struct timespec update_last; + block_update_t update_cb; + block_event_t event_cb; + bool hidden; color_t color; color_t line_color; int line_width; int x_padding, y_padding; int min_width, max_width; - struct timespec update_interval; - struct timespec update_last; - block_update_t update_cb; - block_event_t event_cb; union { struct { char *text; @@ -58,7 +60,7 @@ struct block { struct { int spacing; int n_children; - struct block *children; + struct block **children; } group; }; }; -- cgit v1.2.3