diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-12 16:46:38 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-12 16:46:38 +0200 |
| commit | aac1310ed0b9983a4a4a29ac469405d70465c278 (patch) | |
| tree | 63d2bab985bf7b78572645af8ea7baafb076aa6b /src/config.h | |
| parent | e98943f9eb5cea2921969501e52e8c319323ed4c (diff) | |
Cleanup
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/src/config.h b/src/config.h index c24c968..70c828c 100644 --- a/src/config.h +++ b/src/config.h @@ -6,31 +6,22 @@ #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 enum { + CONFIG_STRING, + CONFIG_INT, + CONFIG_UINT, + CONFIG_DOUBLE, + CONFIG_BOOL, + CONFIG_COLOR, +} config_type_t; typedef struct { - char *label; - size_t n_pairs; - pair_t *pairs; -} config_section_t; + const char *key; + config_type_t type; + size_t offset; +} config_entry_t; typedef struct { - size_t n_blocks; - config_section_t *blocks; - size_t n_actions; - config_section_t *actions; char *font; char *monitor; uint32_t height; |
