aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/loader.h
blob: fe8873009059b38399fb0a90db93fff5da103a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * blogc: A blog compiler.
 * Copyright (C) 2014-2020 Rafael G. Martins <rafael@rafaelmartins.eng.br>
 *
 * This program can be distributed under the terms of the BSD License.
 * See the file LICENSE.
 */

#ifndef _LOADER_H
#define _LOADER_H

#include "../common/error.h"
#include "../common/utils.h"

char* blogc_get_filename(const char *f);
bc_slist_t* blogc_template_parse_from_file(const char *f, bc_error_t **err);
bc_trie_t* blogc_source_parse_from_file(bc_trie_t *conf, const char *f,
    bc_error_t **err);
bc_slist_t* blogc_source_parse_from_files(bc_trie_t *conf, bc_slist_t *l,
    bc_error_t **err);

#endif /* _LOADER_H */