- Enabled filtering banners by size rather than URL
[privoxy.git] / loadcfg.h
1 #ifndef _LOADCFG_H
2 #define _LOADCFG_H
3 #define LOADCFG_H_VERSION "$Id: loadcfg.h,v 1.2 2001/05/17 23:01:01 oes Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/loadcfg.h,v $
7  *
8  * Purpose     :  Loads settings from the configuration file into
9  *                global variables.  This file contains both the 
10  *                routine to load the configuration and the global
11  *                variables it writes to.
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: loadcfg.h,v $
40  *    Revision 1.2  2001/05/17 23:01:01  oes
41  *     - Cleaned CRLF's from the sources and related files
42  *
43  *    Revision 1.1.1.1  2001/05/15 13:58:58  oes
44  *    Initial import of version 2.9.3 source tree
45  *
46  *
47  *********************************************************************/
48 \f
49
50 /* Declare struct FILE for vars and funcs. */
51 #include <stdio.h>
52
53 /* All of our project's data types. */
54 #include "project.h"
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59
60 /* Global variables */
61
62 #ifdef TOGGLE
63 /* indicates if ijb is enabled */
64 extern int g_bToggleIJB;
65 #endif
66
67 extern int debug;
68 extern int multi_threaded;
69
70 #if defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST)
71 extern int tinygif;
72 extern const char *tinygifurl;
73 #endif /* defined(DETECT_MSIE_IMAGES) || defined(USE_IMAGE_LIST) */
74
75 extern const char *logfile;
76
77 extern const char *configfile;
78
79 #ifdef ACL_FILES
80 extern const char *aclfile;
81 #endif /* def ACL_FILES */
82
83 extern const char *blockfile;
84 extern const char *permissions_file;
85 extern const char *forwardfile;
86
87 #ifdef USE_IMAGE_LIST
88 extern const char *imagefile;
89 #endif /* def USE_IMAGE_LIST */
90
91 #ifdef TRUST_FILES
92 extern const char *trustfile;
93 #endif /* def TRUST_FILES */
94
95 #ifdef PCRS
96 extern const char *re_filterfile;
97 #endif /* def PCRS */
98
99 extern int default_permissions;\r
100
101 #ifdef JAR_FILES
102 extern const char *jarfile;
103 extern FILE *jar;
104 #endif /* def JAR_FILES */
105
106 extern const char *referrer;
107 extern const char *uagent;
108 extern const char *from;
109
110 #ifndef SPLIT_PROXY_ARGS
111 extern const char *suppress_message;
112 #endif /* ndef SPLIT_PROXY_ARGS */
113
114 extern int suppress_vanilla_wafer;
115 extern int add_forwarded;
116
117 extern struct list wafer_list[];
118 extern struct list xtra_list[];
119
120 #ifdef TRUST_FILES
121 extern struct list trust_info[];
122 extern struct url_spec *trust_list[];
123 #endif /* def TRUST_FILES */
124
125 extern const char *haddr;
126 extern int   hport;
127
128 #ifndef SPLIT_PROXY_ARGS
129 extern int suppress_blocklists;  /* suppress listing sblock and simage */
130 #endif /* ndef SPLIT_PROXY_ARGS */
131
132 extern struct proxy_args proxy_args[1];
133
134 extern int configret; /* FIXME: This is obsolete, always 0. */
135 extern int config_changed;
136
137
138 /* The load_config function is now going to call:
139  * init_proxy_args, so it will need argc and argv.
140  * Since load_config will also be a signal handler,
141  * we need to have these globally available.
142  */
143 extern int Argc;
144 extern const char **Argv;
145
146
147 extern void load_config( int );
148
149
150 /* Revision control strings from this header and associated .c file */
151 extern const char loadcfg_rcs[];
152 extern const char loadcfg_h_rcs[];
153
154 #ifdef __cplusplus
155 } /* extern "C" */
156 #endif
157
158 #endif /* ndef _JCC_H */
159
160 /*
161   Local Variables:
162   tab-width: 3
163   end:
164 */