From 0eceb95c0a4b517d7eb537a464089f011e3804e2 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Wed, 18 Sep 2024 14:49:59 +0200 Subject: Add effect parsing --- src/config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index a7d196f..4580031 100644 --- a/src/config.h +++ b/src/config.h @@ -8,6 +8,8 @@ typedef struct block block_t; +typedef struct effect effect_t; + typedef enum { CONFIG_STRING, CONFIG_INT, @@ -30,6 +32,8 @@ typedef struct { typedef struct { size_t n_blocks; block_t *blocks; + size_t n_effects; + effect_t *effects; char *font; char *monitor; bool override_redirect; @@ -40,7 +44,7 @@ typedef struct { typedef struct { const char *label; - int value; + intptr_t value; } config_enum_t; void config_init(config_t *config); -- cgit v1.2.3