aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-11-16 00:07:14 +0100
committerFederico Angelilli <code@fedang.net>2024-11-16 00:07:14 +0100
commit9843c8735a5a886252858a848c473cb877875ef4 (patch)
treea78faeb471f8547c5f7982e04a55595c742bdded /src/config.h
parente85ad7414c063e42296f7ef4e202829567484ac0 (diff)
Link scheme with block
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config.h b/src/config.h
index 48fd273..fef2cba 100644
--- a/src/config.h
+++ b/src/config.h
@@ -5,9 +5,8 @@
#include <stdint.h>
#include "util.h"
-#include "block.h"
-typedef struct config config_t;
+typedef struct block block_t;
typedef enum {
CONFIG_STRING,
@@ -28,7 +27,7 @@ typedef struct {
size_t offset;
} config_entry_t;
-struct config {
+typedef struct {
size_t n_blocks;
block_t **blocks;
char *font;
@@ -37,7 +36,7 @@ struct config {
color_t background;
unsigned int width;
unsigned int height;
-};
+} config_t;
typedef struct {
const char *label;