aboutsummaryrefslogtreecommitdiffstats
path: root/src/file.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-09 20:09:55 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-05-09 20:09:55 -0300
commit502ed6760d9d2d674d0dcc87a6cb223ff079745d (patch)
tree1de3473703970658ecc84acefc2e917fb4f40d43 /src/file.h
parentbeb44f4372e0af7dafc7fff6f5184737d61fc8d3 (diff)
downloadblogc-502ed6760d9d2d674d0dcc87a6cb223ff079745d.tar.gz
blogc-502ed6760d9d2d674d0dcc87a6cb223ff079745d.tar.bz2
blogc-502ed6760d9d2d674d0dcc87a6cb223ff079745d.zip
loader: added tests
Diffstat (limited to 'src/file.h')
-rw-r--r--src/file.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/file.h b/src/file.h
new file mode 100644
index 0000000..5abdba7
--- /dev/null
+++ b/src/file.h
@@ -0,0 +1,19 @@
+/*
+ * blogc: A blog compiler.
+ * Copyright (C) 2015 Rafael G. Martins <rafael@rafaelmartins.eng.br>
+ *
+ * This program can be distributed under the terms of the BSD License.
+ * See the file COPYING.
+ */
+
+#ifndef _FILE_H
+#define _FILE_H
+
+#include "utils/utils.h"
+#include "error.h"
+
+#define BLOGC_FILE_CHUNK_SIZE 1024
+
+char* blogc_file_get_contents(const char *path, size_t *len, blogc_error_t **err);
+
+#endif /* _FILE_H */