summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-05-29 22:13:12 -0600
committercflip <cflip@cflip.net>2023-05-29 22:23:21 -0600
commit775c4157994ee0ebe9bd951a99bc5d7558128ba4 (patch)
treee6bbfea51cf0c66e909e9cd6bd3f7c0747b14ebc /file.h
parentfca0a3d5d8ea1e9af4411ef03181b4c23534474b (diff)
Hacks to make it possible to serve PHP pages
The most significant change is that the functions for reading a file and such write directly to the socket instead of attempting to fill buffers.
Diffstat (limited to 'file.h')
-rw-r--r--file.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/file.h b/file.h
index 304cc75..ee39eae 100644
--- a/file.h
+++ b/file.h
@@ -3,6 +3,11 @@
#include <stddef.h>
-size_t file_read(const char *, char **);
+#include "http.h"
+
+int file_handle_request(struct http_request *, int);
+
+int file_read(const char *, int);
+int file_read_cgi(const char *, int);
#endif