summaryrefslogtreecommitdiffstats
path: root/src/blogc-make/settings.h
blob: dc2803348ddd4efd316d75064e9b7598ac6e8ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#include <stddef.h>
#include "../common/error.h"
#include "../common/utils.h"

typedef struct {
    bc_trie_t *global;
    bc_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,
    bc_error_t **err);
void bm_settings_free(bm_settings_t *settings);