aboutsummaryrefslogtreecommitdiffstats
path: root/ui-shared.h
diff options
context:
space:
mode:
authorJohn Keeping2015-08-14 12:47:01 +0100
committerJason A. Donenfeld2015-08-14 15:46:51 +0200
commitaec1204a54e3baa12c76db75c2f67696def05eb0 (patch)
tree313974d5bc7e8c26178f266f632d993cca2b883b /ui-shared.h
parentaa12084f9835783abbd1f1e4609f8de05e73cec4 (diff)
downloadcgit-aec1204a54e3baa12c76db75c2f67696def05eb0.tar.gz
cgit-aec1204a54e3baa12c76db75c2f67696def05eb0.tar.bz2
cgit-aec1204a54e3baa12c76db75c2f67696def05eb0.zip
ui-shared: add cgit_print_error_page() function
This will allow us to generate error responses with the correct HTTP response code without needing all of the layout boilerplate. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'ui-shared.h')
-rw-r--r--ui-shared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-shared.h b/ui-shared.h
index d8a3551..652685e 100644
--- a/ui-shared.h
+++ b/ui-shared.h
@@ -64,6 +64,8 @@ extern void cgit_print_http_headers(void);
64extern void cgit_redirect(const char *url, bool permanent); 64extern void cgit_redirect(const char *url, bool permanent);
65extern void cgit_print_docstart(void); 65extern void cgit_print_docstart(void);
66extern void cgit_print_docend(); 66extern void cgit_print_docend();
67__attribute__((format (printf,3,4)))
68extern void cgit_print_error_page(int code, const char *msg, const char *fmt, ...);
67extern void cgit_print_pageheader(void); 69extern void cgit_print_pageheader(void);
68extern void cgit_print_filemode(unsigned short mode); 70extern void cgit_print_filemode(unsigned short mode);
69extern void cgit_print_snapshot_links(const char *repo, const char *head, 71extern void cgit_print_snapshot_links(const char *repo, const char *head,