From b0a3568de0d0a8d1d6000aaa310870862398a07b Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sat, 24 May 2008 13:47:14 +0530 Subject: Renamed htmlerror.[ch] to html-error.[ch] --- src/html-error.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/html-error.h (limited to 'src/html-error.h') diff --git a/src/html-error.h b/src/html-error.h new file mode 100644 index 0000000..2e35b5b --- /dev/null +++ b/src/html-error.h @@ -0,0 +1,36 @@ +/* tinyproxy - A fast light-weight HTTP proxy + * Copyright (C) 2003 Steven Young + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/* See 'html-error.c' for detailed information. */ + +#ifndef TINYPROXY_HTML_ERROR_H +#define TINYPROXY_HTML_ERROR_H + +/* Forward declaration */ +struct conn_s; + +extern int add_new_errorpage(char *filepath, unsigned int errornum); +extern int send_http_error_message(struct conn_s *connptr); +extern int indicate_http_error(struct conn_s *connptr, int number, + char *message, ...); +extern int add_error_variable(struct conn_s *connptr, char *key, char *val); +extern int send_html_file(FILE * infile, struct conn_s *connptr); +extern int send_http_headers(struct conn_s *connptr, int code, char *message); +extern int add_standard_vars(struct conn_s *connptr); + +#endif /* !TINYPROXY_HTML_ERROR_H */ -- cgit v1.2.3