blob: d524d23a1b3803b4f4e664d068dc18952e6d5107 (
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
27
28
29
30
|
/*
* blogc: A blog compiler.
* Copyright (C) 2014-2017 Rafael G. Martins <rafael@rafaelmartins.eng.br>
*
* This program can be distributed under the terms of the BSD License.
* See the file LICENSE.
*/
#ifndef _MAKE_SETTINGS_H
#define _MAKE_SETTINGS_H
#include <stddef.h>
#include <squareball.h>
typedef struct {
char *root_dir;
sb_trie_t *global;
sb_trie_t *settings;
char **posts;
char **pages;
char **copy;
char **tags;
} bm_settings_t;
bm_settings_t* bm_settings_parse(const char *content, size_t content_len,
sb_error_t **err);
bm_settings_t* bm_settings_parse_file(const char *filename, sb_error_t **err);
void bm_settings_free(bm_settings_t *settings);
#endif /* _MAKE_SETTINGS_H */
|