Show enablement/disablement status in almost all templates.
[privoxy.git] / cgiedit.h
1 #ifndef CGIEDIT_H_INCLUDED
2 #define CGIEDIT_H_INCLUDED
3 #define CGIEDIT_H_VERSION "$Id: cgiedit.h,v 1.2 2001/10/14 22:12:49 jongfoster Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/cgiedit.h,v $
7  *
8  * Purpose     :  CGI-based actionsfile editor.
9  *                
10  *                Functions declared include:
11  * 
12  *
13  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
14  *                IJBSWA team.  http://ijbswa.sourceforge.net
15  *
16  *                Based on the Internet Junkbuster originally written
17  *                by and Copyright (C) 1997 Anonymous Coders and 
18  *                Junkbusters Corporation.  http://www.junkbusters.com
19  *
20  *                This program is free software; you can redistribute it 
21  *                and/or modify it under the terms of the GNU General
22  *                Public License as published by the Free Software
23  *                Foundation; either version 2 of the License, or (at
24  *                your option) any later version.
25  *
26  *                This program is distributed in the hope that it will
27  *                be useful, but WITHOUT ANY WARRANTY; without even the
28  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
29  *                PARTICULAR PURPOSE.  See the GNU General Public
30  *                License for more details.
31  *
32  *                The GNU General Public License should be included with
33  *                this file.  If not, you can view it at
34  *                http://www.gnu.org/copyleft/gpl.html
35  *                or write to the Free Software Foundation, Inc., 59
36  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
37  *
38  * Revisions   :
39  *    $Log: cgiedit.h,v $
40  *    Revision 1.2  2001/10/14 22:12:49  jongfoster
41  *    New version of CGI-based actionsfile editor.
42  *    Major changes, including:
43  *    - Completely new file parser and file output routines
44  *    - edit-actions CGI renamed edit-actions-for-url
45  *    - All CGIs now need a filename parameter, except for...
46  *    - New CGI edit-actions which doesn't need a filename,
47  *      to allow you to start the editor up.
48  *    - edit-actions-submit now works, and now automatically
49  *      redirects you back to the main edit-actions-list handler.
50  *
51  *    Revision 1.1  2001/09/16 15:47:37  jongfoster
52  *    First version of CGI-based edit interface.  This is very much a
53  *    work-in-progress, and you can't actually use it to edit anything
54  *    yet.  You must #define FEATURE_CGI_EDIT_ACTIONS for these changes
55  *    to have any effect.
56  *
57  *
58  **********************************************************************/
59 \f
60
61 #include "project.h"
62
63 #ifdef __cplusplus
64 extern "C" {
65 #endif
66
67 /*
68  * CGI functions
69  */
70 #ifdef FEATURE_CGI_EDIT_ACTIONS
71 extern jb_err cgi_edit_actions        (struct client_state *csp,
72                                        struct http_response *rsp,
73                                        const struct map *parameters);
74 extern jb_err cgi_edit_actions_for_url(struct client_state *csp,
75                                        struct http_response *rsp,
76                                        const struct map *parameters);
77 extern jb_err cgi_edit_actions_list   (struct client_state *csp,
78                                        struct http_response *rsp,
79                                        const struct map *parameters);
80 extern jb_err cgi_edit_actions_submit (struct client_state *csp,
81                                        struct http_response *rsp,
82                                        const struct map *parameters);
83 extern jb_err cgi_edit_actions_url    (struct client_state *csp,
84                                        struct http_response *rsp,
85                                        const struct map *parameters);
86 extern jb_err cgi_edit_actions_add_url(struct client_state *csp,
87                                        struct http_response *rsp,
88                                        const struct map *parameters);
89 extern jb_err cgi_edit_actions_remove_url    (struct client_state *csp,
90                                               struct http_response *rsp,
91                                               const struct map *parameters);
92 extern jb_err cgi_edit_actions_section_remove(struct client_state *csp,
93                                               struct http_response *rsp,
94                                               const struct map *parameters);
95 extern jb_err cgi_edit_actions_section_add   (struct client_state *csp,
96                                               struct http_response *rsp,
97                                               const struct map *parameters);
98 extern jb_err cgi_toggle(struct client_state *csp,
99                          struct http_response *rsp,
100                          const struct map *parameters);
101 #endif /* def FEATURE_CGI_EDIT_ACTIONS */
102
103
104 /* Revision control strings from this header and associated .c file */
105 extern const char cgiedit_rcs[];
106 extern const char cgiedit_h_rcs[];
107
108 #ifdef __cplusplus
109 } /* extern "C" */
110 #endif
111
112 #endif /* ndef CGI_H_INCLUDED */
113
114 /*
115   Local Variables:
116   tab-width: 3
117   end:
118 */