summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-09-05 12:58:22 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-09-06 12:22:20 +0200
commit35a145fd161fb4d4f19aa9820b50438695b94414 (patch)
tree00e9f341d5b7e0a6874efbe9fafc0500cf13cd2d /http.h
parent9b8d38ab209c6e7e747d6d420f1b105fe858c7eb (diff)
browse: add upload button
Diffstat (limited to 'http.h')
-rw-r--r--http.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/http.h b/http.h
index 6ca25e9..71a5d61 100644
--- a/http.h
+++ b/http.h
@@ -48,7 +48,7 @@ struct http_ret {
* All parameters are required.
*/
bool
-http_open_file(struct kreq *, enum khttp, struct file *);
+http_open_file(struct kreq *, enum khttp, const struct file *);
/*
* Initialize headers and start the document body with the provided http code.
@@ -67,6 +67,6 @@ http_open(struct kreq *, enum khttp, enum kmime);
* This function exits with EXIT_FAILURE. It never returns.
*/
void
-http_exit(struct kreq *, enum khttp, char *,...);
+http_exit(const struct kreq *, enum khttp, const char *,...);
#endif /* HTTP_H */