diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-12 00:36:47 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-12 00:36:47 +0100 |
| commit | 686802c2a472746a1b40fab30cbb0351e536c9ba (patch) | |
| tree | 9a4fe3fa654fbe7b9bb35893a2da71c9754745b4 /src/config.h | |
| parent | 3f2af32442b9384d316651d42ad35945533dc39e (diff) | |
Modify block struct
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/config.h b/src/config.h index a7d196f..48fd273 100644 --- a/src/config.h +++ b/src/config.h @@ -5,8 +5,9 @@ #include <stdint.h> #include "util.h" +#include "block.h" -typedef struct block block_t; +typedef struct config config_t; typedef enum { CONFIG_STRING, @@ -27,16 +28,16 @@ typedef struct { size_t offset; } config_entry_t; -typedef struct { +struct config { size_t n_blocks; - block_t *blocks; + block_t **blocks; char *font; char *monitor; bool override_redirect; color_t background; unsigned int width; unsigned int height; -} config_t; +}; typedef struct { const char *label; @@ -47,6 +48,8 @@ void config_init(config_t *config); void config_read(config_t *config, FILE *file); +bool config_resolve_children(config_t *config, block_t *block); + block_t *config_resolve(config_t *config); void config_free(config_t *config); |
