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