- Cleaned up, renamed and reordered functions,
[privoxy.git] / actions.h
1 #ifndef _ACTIONS_H
2 #define _ACTIONS_H
3 #define ACTIONS_H_VERSION "$Id: actions.h,v ??? $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/actions.h,v $
7  *
8  * Purpose     :  Declares functions to work with actions files
9  *                Functions declared include: FIXME
10  *
11  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
12  *                IJBSWA team.  http://ijbswa.sourceforge.net
13  *
14  *                Based on the Internet Junkbuster originally written
15  *                by and Copyright (C) 1997 Anonymous Coders and 
16  *                Junkbusters Corporation.  http://www.junkbusters.com
17  *
18  *                This program is free software; you can redistribute it 
19  *                and/or modify it under the terms of the GNU General
20  *                Public License as published by the Free Software
21  *                Foundation; either version 2 of the License, or (at
22  *                your option) any later version.
23  *
24  *                This program is distributed in the hope that it will
25  *                be useful, but WITHOUT ANY WARRANTY; without even the
26  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
27  *                PARTICULAR PURPOSE.  See the GNU General Public
28  *                License for more details.
29  *
30  *                The GNU General Public License should be included with
31  *                this file.  If not, you can view it at
32  *                http://www.gnu.org/copyleft/gpl.html
33  *                or write to the Free Software Foundation, Inc., 59
34  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
35  *
36  * Revisions   :
37  *    $Log: actions.h,v $
38  *
39  *********************************************************************/
40 \f
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45
46
47 extern void merge_actions (struct action_spec *dest, 
48                            const struct action_spec *src);
49 extern void copy_action (struct action_spec *dest, 
50                          const struct action_spec *src);
51 extern void free_action (struct action_spec *src);
52 extern char * actions_to_text     (struct action_spec *action);
53
54 extern void init_current_action     (struct current_action_spec *dest);
55 extern void merge_current_action    (struct current_action_spec *dest, 
56                                      const struct action_spec *src);
57 extern void free_current_action     (struct current_action_spec *src);
58 extern char * current_action_to_text(struct current_action_spec *action);
59
60 extern int get_action_token(char **line, char **name, char **value);
61 extern void unload_actions_file(void *file_data);
62 extern int load_actions_file(struct client_state *csp);
63
64
65 /* Revision control strings from this header and associated .c file */
66 extern const char actions_rcs[];
67 extern const char actions_h_rcs[];
68
69 #ifdef __cplusplus
70 } /* extern "C" */
71 #endif
72
73 #endif /* ndef _ERRLOG_H */
74
75 /*
76   Local Variables:
77   tab-width: 3
78   end:
79 */
80