b0076cf6c891b6b5f08f1183d2559866b6d2836f
[privoxy.git] / cgiedit.h
1 #ifndef CGIEDIT_H_INCLUDED
2 #define CGIEDIT_H_INCLUDED
3 /*********************************************************************
4  *
5  * File        :  $Source: /cvsroot/ijbswa/current/cgiedit.h,v $
6  *
7  * Purpose     :  CGI-based actionsfile editor.
8  *
9  *                Functions declared include:
10  *
11  *
12  * Copyright   :  Written by and Copyright (C) 2001 members of the
13  *                Privoxy team. http://www.privoxy.org/
14  *
15  *                Based on the Internet Junkbuster originally written
16  *                by and Copyright (C) 1997 Anonymous Coders and
17  *                Junkbusters Corporation.  http://www.junkbusters.com
18  *
19  *                This program is free software; you can redistribute it
20  *                and/or modify it under the terms of the GNU General
21  *                Public License as published by the Free Software
22  *                Foundation; either version 2 of the License, or (at
23  *                your option) any later version.
24  *
25  *                This program is distributed in the hope that it will
26  *                be useful, but WITHOUT ANY WARRANTY; without even the
27  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
28  *                PARTICULAR PURPOSE.  See the GNU General Public
29  *                License for more details.
30  *
31  *                The GNU General Public License should be included with
32  *                this file.  If not, you can view it at
33  *                http://www.gnu.org/copyleft/gpl.html
34  *                or write to the Free Software Foundation, Inc., 59
35  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
36  *
37  **********************************************************************/
38
39
40 #include "project.h"
41
42 /*
43  * CGI functions
44  */
45 #ifdef FEATURE_CGI_EDIT_ACTIONS
46 extern jb_err cgi_edit_actions        (struct client_state *csp,
47                                        struct http_response *rsp,
48                                        const struct map *parameters);
49 extern jb_err cgi_edit_actions_for_url(struct client_state *csp,
50                                        struct http_response *rsp,
51                                        const struct map *parameters);
52 extern jb_err cgi_edit_actions_list   (struct client_state *csp,
53                                        struct http_response *rsp,
54                                        const struct map *parameters);
55 extern jb_err cgi_edit_actions_submit (struct client_state *csp,
56                                        struct http_response *rsp,
57                                        const struct map *parameters);
58 extern jb_err cgi_edit_actions_url    (struct client_state *csp,
59                                        struct http_response *rsp,
60                                        const struct map *parameters);
61 extern jb_err cgi_edit_actions_url_form(struct client_state *csp,
62                                         struct http_response *rsp,
63                                         const struct map *parameters);
64 extern jb_err cgi_edit_actions_add_url(struct client_state *csp,
65                                        struct http_response *rsp,
66                                        const struct map *parameters);
67 extern jb_err cgi_edit_actions_add_url_form(struct client_state *csp,
68                                             struct http_response *rsp,
69                                             const struct map *parameters);
70 extern jb_err cgi_edit_actions_remove_url    (struct client_state *csp,
71                                               struct http_response *rsp,
72                                               const struct map *parameters);
73 extern jb_err cgi_edit_actions_remove_url_form(struct client_state *csp,
74                                             struct http_response *rsp,
75                                             const struct map *parameters);
76 extern jb_err cgi_edit_actions_section_remove(struct client_state *csp,
77                                               struct http_response *rsp,
78                                               const struct map *parameters);
79 extern jb_err cgi_edit_actions_section_add   (struct client_state *csp,
80                                               struct http_response *rsp,
81                                               const struct map *parameters);
82 extern jb_err cgi_edit_actions_section_swap  (struct client_state *csp,
83                                               struct http_response *rsp,
84                                               const struct map *parameters);
85 #endif /* def FEATURE_CGI_EDIT_ACTIONS */
86 #ifdef FEATURE_TOGGLE
87 extern jb_err cgi_toggle(struct client_state *csp,
88                          struct http_response *rsp,
89                          const struct map *parameters);
90 #endif /* def FEATURE_TOGGLE */
91
92 #endif /* ndef CGI_H_INCLUDED */
93
94 /*
95   Local Variables:
96   tab-width: 3
97   end:
98 */