aboutsummaryrefslogtreecommitdiffstats
path: root/src/source-parser.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-18 17:17:37 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-18 17:17:37 -0300
commitde39a41da62c4b3820b4805ddb7c4970c36bc257 (patch)
tree33da0f360932be9c76dd79a05a9bceaaed5a0441 /src/source-parser.h
parentd3e1e90f0979621f741357484e5a8f9656ee4a22 (diff)
downloadblogc-de39a41da62c4b3820b4805ddb7c4970c36bc257.tar.gz
blogc-de39a41da62c4b3820b4805ddb7c4970c36bc257.tar.bz2
blogc-de39a41da62c4b3820b4805ddb7c4970c36bc257.zip
added loader, error handling and cli. tests needed
Diffstat (limited to 'src/source-parser.h')
-rw-r--r--src/source-parser.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/source-parser.h b/src/source-parser.h
index e33a7d4..c816e5b 100644
--- a/src/source-parser.h
+++ b/src/source-parser.h
@@ -11,13 +11,15 @@
#include <stdlib.h>
#include "utils/utils.h"
+#include "error.h"
typedef struct {
b_trie_t *config;
char *content;
} blogc_source_t;
-blogc_source_t* blogc_source_parse(const char *src, size_t src_len);
-void blogc_source_free(blogc_source_t *source);
+blogc_source_t* blogc_source_parse(const char *src, size_t src_len,
+ blogc_error_t **err);
+void blogc_source_free(void *source);
#endif /* _SOURCE_PARSER_H */