Make it more obvious that default.action.master is supposed to be edited
[privoxy.git] / cgisimple.h
1 #ifndef CGISIMPLE_H_INCLUDED
2 #define CGISIMPLE_H_INCLUDED
3 #define CGISIMPLE_H_VERSION "$Id: cgisimple.h,v 1.17 2009/05/16 13:27:20 fabiankeil Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.h,v $
7  *
8  * Purpose     :  Declares functions to intercept request, generate
9  *                html or gif answers, and to compose HTTP resonses.
10  *
11  *                Functions declared include:
12  *
13  *
14  * Copyright   :  Written by and Copyright (C) 2001-2007 the SourceForge
15  *                Privoxy team. http://www.privoxy.org/
16  *
17  *                Based on the Internet Junkbuster originally written
18  *                by and Copyright (C) 1997 Anonymous Coders and
19  *                Junkbusters Corporation.  http://www.junkbusters.com
20  *
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.
26  *
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.
32  *
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.
38  *
39  **********************************************************************/
40
41
42 #include "project.h"
43
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47
48 /*
49  * CGI functions
50  */
51 extern jb_err cgi_default      (struct client_state *csp,
52                                 struct http_response *rsp,
53                                 const struct map *parameters);
54 extern jb_err cgi_error_404    (struct client_state *csp,
55                                 struct http_response *rsp,
56                                 const struct map *parameters);
57 extern jb_err cgi_robots_txt   (struct client_state *csp,
58                                 struct http_response *rsp,
59                                 const struct map *parameters);
60 extern jb_err cgi_send_banner  (struct client_state *csp,
61                                 struct http_response *rsp,
62                                 const struct map *parameters);
63 extern jb_err cgi_show_status  (struct client_state *csp,
64                                 struct http_response *rsp,
65                                 const struct map *parameters);
66 extern jb_err cgi_show_url_info(struct client_state *csp,
67                                 struct http_response *rsp,
68                                 const struct map *parameters);
69 extern jb_err cgi_show_version (struct client_state *csp,
70                                 struct http_response *rsp,
71                                 const struct map *parameters);
72 extern jb_err cgi_show_request (struct client_state *csp,
73                                 struct http_response *rsp,
74                                 const struct map *parameters);
75 extern jb_err cgi_transparent_image (struct client_state *csp,
76                                      struct http_response *rsp,
77                                      const struct map *parameters);
78 extern jb_err cgi_send_error_favicon (struct client_state *csp,
79                                       struct http_response *rsp,
80                                       const struct map *parameters);
81 extern jb_err cgi_send_default_favicon (struct client_state *csp,
82                                         struct http_response *rsp,
83                                         const struct map *parameters);
84 extern jb_err cgi_send_stylesheet(struct client_state *csp,
85                                   struct http_response *rsp,
86                                   const struct map *parameters);
87 extern jb_err cgi_send_url_info_osd(struct client_state *csp,
88                                     struct http_response *rsp,
89                                     const struct map *parameters);
90 extern jb_err cgi_send_user_manual(struct client_state *csp,
91                                    struct http_response *rsp,
92                                    const struct map *parameters);
93
94
95 #ifdef FEATURE_GRACEFUL_TERMINATION
96 extern jb_err cgi_die (struct client_state *csp,
97                        struct http_response *rsp,
98                        const struct map *parameters);
99 #endif
100
101 /* Revision control strings from this header and associated .c file */
102 extern const char cgisimple_rcs[];
103 extern const char cgisimple_h_rcs[];
104
105 #ifdef __cplusplus
106 } /* extern "C" */
107 #endif
108
109 #endif /* ndef CGISIMPLE_H_INCLUDED */
110
111 /*
112   Local Variables:
113   tab-width: 3
114   end:
115 */