Made failure to bind() a fatal error.
[privoxy.git] / filters.h
1 #ifndef _FILTERS_H
2 #define _FILTERS_H
3 #define FILTERS_H_VERSION "$Id: filters.h,v 1.1.1.1 2001/05/15 13:58:52 oes Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/filters.h,v $
7  *
8  * Purpose     :  Declares functions to parse/crunch headers and pages.
9  *                Functions declared include:
10  *                   `acl_addr', `add_stats', `block_acl', `block_imageurl',
11  *                   `block_url', `url_permissions', `domaincmp', `dsplit',
12  *                   `filter_popups', `forward_url'
13  *                   `ij_untrusted_url', `intercept_url', `re_process_buffer',
14  *                   `show_proxy_args', and `trust_url'
15  *
16  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
17  *                IJBSWA team.  http://ijbswa.sourceforge.net
18  *
19  *                Based on the Internet Junkbuster originally written
20  *                by and Copyright (C) 1997 Anonymous Coders and 
21  *                Junkbusters Corporation.  http://www.junkbusters.com
22  *
23  *                This program is free software; you can redistribute it 
24  *                and/or modify it under the terms of the GNU General
25  *                Public License as published by the Free Software
26  *                Foundation; either version 2 of the License, or (at
27  *                your option) any later version.
28  *
29  *                This program is distributed in the hope that it will
30  *                be useful, but WITHOUT ANY WARRANTY; without even the
31  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
32  *                PARTICULAR PURPOSE.  See the GNU General Public
33  *                License for more details.
34  *
35  *                The GNU General Public License should be included with
36  *                this file.  If not, you can view it at
37  *                http://www.gnu.org/copyleft/gpl.html
38  *                or write to the Free Software Foundation, Inc., 59
39  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
40  *
41  * Revisions   :
42  *    $Log: filters.h,v $
43  *    Revision 1.1.1.1  2001/05/15 13:58:52  oes
44  *    Initial import of version 2.9.3 source tree
45  *
46  *
47  *********************************************************************/
48 \f\r
49
50 #include "project.h"
51
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55
56 #ifdef ACL_FILES
57 extern int block_acl(struct access_control_addr *src, struct access_control_addr *dst, struct client_state *csp);
58 extern int acl_addr(char *aspec, struct access_control_addr *aca);
59 #endif /* def ACL_FILES */
60
61 extern char *block_url(struct http_request *http, struct client_state *csp);
62 #ifdef TRUST_FILES
63 extern char *trust_url(struct http_request *http, struct client_state *csp);
64 #endif /* def TRUST_FILES */
65 extern char *intercept_url(struct http_request *http, struct client_state *csp);
66
67 #if defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST)
68 extern int block_imageurl(struct http_request *http, struct client_state *csp);
69 #endif /* defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST) */
70
71 #ifdef USE_IMAGE_LIST
72 extern int block_imageurl_using_imagelist(struct http_request *http, struct client_state *csp);
73 #endif /* def USE_IMAGE_LIST */
74
75 extern int url_permissions(struct http_request *http, struct client_state *csp);
76 extern const struct gateway *forward_url(struct http_request *http, struct client_state *csp);
77
78 extern struct url_spec dsplit(char *domain);
79 extern int domaincmp(struct url_spec *pattern, struct url_spec *fqdn);
80
81 extern char *show_proxy_args(struct http_request *http, struct client_state *csp);
82
83 #ifdef TRUST_FILES
84 extern char *ij_untrusted_url(struct http_request *http, struct client_state *csp);
85 #endif /* def TRUST_FILES */
86
87 #ifdef STATISTICS
88 extern char *add_stats(char *s);
89 #endif /* def STATISTICS */
90
91 #ifdef PCRS
92 extern void re_process_buffer(struct client_state *csp);
93 #endif /* def PCRS */
94
95 /* Revision control strings from this header and associated .c file */
96 extern const char filters_rcs[];
97 extern const char filters_h_rcs[];
98
99 #ifdef __cplusplus
100 } /* extern "C" */
101 #endif
102
103 #endif /* ndef _FILTERS_H */
104
105 /*
106   Local Variables:
107   tab-width: 3
108   end:
109 */