diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-12 13:33:28 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-12 13:33:28 +0200 |
| commit | e98943f9eb5cea2921969501e52e8c319323ed4c (patch) | |
| tree | f7879c77e85d4cdea19c53bef2d1ae3dc192c20c /src/config.h | |
| parent | e45c7bc6b41fbcea84ca51d01b8661f93145ce7a (diff) | |
Start working on special sections
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/src/config.h b/src/config.h index 8e4098c..c24c968 100644 --- a/src/config.h +++ b/src/config.h @@ -2,17 +2,39 @@ #define COMET_CONFIG_H #include <stdio.h> +#include <stdint.h> #include "block.h" +//typedef struct { +// char *label; +// char *type; +// int x_padding, y_padding; +// color_t color; +// char *text; +// color_t text_color; +// int line_width; +// color_t line_color; +// bool hidden; +// double interval; +// int min_width, max_width; +//} config_block_t; + +typedef struct { + char *label; + size_t n_pairs; + pair_t *pairs; +} config_section_t; + typedef struct { - block_t main_block; size_t n_blocks; - block_t *blocks; + config_section_t *blocks; + size_t n_actions; + config_section_t *actions; char *font; char *monitor; - unsigned int height; - unsigned int width; + uint32_t height; + uint32_t width; bool override_redirect; color_t background; } config_t; @@ -21,6 +43,8 @@ void config_init(config_t *config); void config_read(config_t *config, FILE *file); +void config_resolve(config_t *config, block_t *block); + void config_free(config_t *config); #endif |
