aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc/loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc/loader.h')
-rw-r--r--src/blogc/loader.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/blogc/loader.h b/src/blogc/loader.h
new file mode 100644
index 0000000..c54d11a
--- /dev/null
+++ b/src/blogc/loader.h
@@ -0,0 +1,21 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2015-2016 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 "error.h"
+#include "../common/utils.h"
+
+char* blogc_get_filename(const char *f);
+sb_slist_t* blogc_template_parse_from_file(const char *f, blogc_error_t **err);
+sb_trie_t* blogc_source_parse_from_file(const char *f, blogc_error_t **err);
+sb_slist_t* blogc_source_parse_from_files(sb_trie_t *conf, sb_slist_t *l,
+ blogc_error_t **err);
+
+#endif /* _LOADER_H */