X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/30304d8156a72ffc95e45e1aa9407319b81bd253..329381dfe45d37cb94847ee92ebe58f2d6c02a9d:/ui-shared.h diff --git a/ui-shared.h b/ui-shared.h index 788b1bc..652685e 100644 --- a/ui-shared.h +++ b/ui-shared.h @@ -1,8 +1,6 @@ #ifndef UI_SHARED_H #define UI_SHARED_H -#include - extern const char *cgit_httpscheme(); extern const char *cgit_hosturl(); extern const char *cgit_rooturl(); @@ -66,6 +64,8 @@ extern void cgit_print_http_headers(void); extern void cgit_redirect(const char *url, bool permanent); extern void cgit_print_docstart(void); extern void cgit_print_docend(); +__attribute__((format (printf,3,4))) +extern void cgit_print_error_page(int code, const char *msg, const char *fmt, ...); extern void cgit_print_pageheader(void); extern void cgit_print_filemode(unsigned short mode); extern void cgit_print_snapshot_links(const char *repo, const char *head,