aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h11
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);