aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
blob: 8e4098c6e3d561ba28c8675ef744326cfca8c140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef COMET_CONFIG_H
#define COMET_CONFIG_H

#include <stdio.h>

#include "block.h"

typedef struct {
    block_t main_block;
    size_t n_blocks;
    block_t *blocks;
    char *font;
    char *monitor;
    unsigned int height;
    unsigned int width;
    bool override_redirect;
    color_t background;
} config_t;

void config_init(config_t *config);

void config_read(config_t *config, FILE *file);

void config_free(config_t *config);

#endif