aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-runserver/httpd-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/blogc-runserver/httpd-utils.h')
-rw-r--r--src/blogc-runserver/httpd-utils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/blogc-runserver/httpd-utils.h b/src/blogc-runserver/httpd-utils.h
new file mode 100644
index 0000000..b9af852
--- /dev/null
+++ b/src/blogc-runserver/httpd-utils.h
@@ -0,0 +1,19 @@
+/*
+ * 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 _HTTPD_UTILS_H
+#define _HTTPD_UTILS_H
+
+#define READLINE_BUFFER_SIZE 1024
+
+char* br_readline(int socket);
+int br_hextoi(const char c);
+char* br_urldecode(const char *str);
+const char* br_get_extension(const char *filename);
+
+#endif /* _HTTPD_UTILS_H */