1 #ifndef CGISIMPLE_H_INCLUDED
2 #define CGISIMPLE_H_INCLUDED
3 #define CGISIMPLE_H_VERSION "$Id: cgisimple.h,v 1.19 2013/11/24 14:23:28 fabiankeil Exp $"
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/cgisimple.h,v $
8 * Purpose : Declares functions to intercept request, generate
9 * html or gif answers, and to compose HTTP resonses.
11 * Functions declared include:
14 * Copyright : Written by and Copyright (C) 2001-2007 the SourceForge
15 * Privoxy team. http://www.privoxy.org/
17 * Based on the Internet Junkbuster originally written
18 * by and Copyright (C) 1997 Anonymous Coders and
19 * Junkbusters Corporation. http://www.junkbusters.com
21 * This program is free software; you can redistribute it
22 * and/or modify it under the terms of the GNU General
23 * Public License as published by the Free Software
24 * Foundation; either version 2 of the License, or (at
25 * your option) any later version.
27 * This program is distributed in the hope that it will
28 * be useful, but WITHOUT ANY WARRANTY; without even the
29 * implied warranty of MERCHANTABILITY or FITNESS FOR A
30 * PARTICULAR PURPOSE. See the GNU General Public
31 * License for more details.
33 * The GNU General Public License should be included with
34 * this file. If not, you can view it at
35 * http://www.gnu.org/copyleft/gpl.html
36 * or write to the Free Software Foundation, Inc., 59
37 * Temple Place - Suite 330, Boston, MA 02111-1307, USA.
39 **********************************************************************/
47 extern jb_err cgi_default (struct client_state *csp,
48 struct http_response *rsp,
49 const struct map *parameters);
50 extern jb_err cgi_error_404 (struct client_state *csp,
51 struct http_response *rsp,
52 const struct map *parameters);
53 extern jb_err cgi_robots_txt (struct client_state *csp,
54 struct http_response *rsp,
55 const struct map *parameters);
56 extern jb_err cgi_send_banner (struct client_state *csp,
57 struct http_response *rsp,
58 const struct map *parameters);
59 extern jb_err cgi_show_status (struct client_state *csp,
60 struct http_response *rsp,
61 const struct map *parameters);
62 extern jb_err cgi_show_url_info(struct client_state *csp,
63 struct http_response *rsp,
64 const struct map *parameters);
65 extern jb_err cgi_show_version (struct client_state *csp,
66 struct http_response *rsp,
67 const struct map *parameters);
68 extern jb_err cgi_show_request (struct client_state *csp,
69 struct http_response *rsp,
70 const struct map *parameters);
71 #ifdef FEATURE_CLIENT_TAGS
72 extern jb_err cgi_show_client_tags(struct client_state *csp,
73 struct http_response *rsp,
74 const struct map *parameters);
76 extern jb_err cgi_transparent_image (struct client_state *csp,
77 struct http_response *rsp,
78 const struct map *parameters);
79 extern jb_err cgi_send_error_favicon (struct client_state *csp,
80 struct http_response *rsp,
81 const struct map *parameters);
82 extern jb_err cgi_send_default_favicon (struct client_state *csp,
83 struct http_response *rsp,
84 const struct map *parameters);
85 extern jb_err cgi_send_stylesheet(struct client_state *csp,
86 struct http_response *rsp,
87 const struct map *parameters);
88 extern jb_err cgi_send_url_info_osd(struct client_state *csp,
89 struct http_response *rsp,
90 const struct map *parameters);
91 extern jb_err cgi_send_user_manual(struct client_state *csp,
92 struct http_response *rsp,
93 const struct map *parameters);
96 #ifdef FEATURE_GRACEFUL_TERMINATION
97 extern jb_err cgi_die (struct client_state *csp,
98 struct http_response *rsp,
99 const struct map *parameters);
102 /* Revision control strings from this header and associated .c file */
103 extern const char cgisimple_rcs[];
104 extern const char cgisimple_h_rcs[];
106 #endif /* ndef CGISIMPLE_H_INCLUDED */