Fix typo
[privoxy.git] / loadcfg.h
1 #ifndef LOADCFG_H_INCLUDED
2 #define LOADCFG_H_INCLUDED
3 /*********************************************************************
4  *
5  * File        :  $Source: /cvsroot/ijbswa/current/loadcfg.h,v $
6  *
7  * Purpose     :  Loads settings from the configuration file into
8  *                global variables.  This file contains both the
9  *                routine to load the configuration and the global
10  *                variables it writes to.
11  *
12  * Copyright   :  Written by and Copyright (C) 2001 members of the
13  *                Privoxy team. https://www.privoxy.org/
14  *
15  *                Based on the Internet Junkbuster originally written
16  *                by and Copyright (C) 1997 Anonymous Coders and
17  *                Junkbusters Corporation.  http://www.junkbusters.com
18  *
19  *                This program is free software; you can redistribute it
20  *                and/or modify it under the terms of the GNU General
21  *                Public License as published by the Free Software
22  *                Foundation; either version 2 of the License, or (at
23  *                your option) any later version.
24  *
25  *                This program is distributed in the hope that it will
26  *                be useful, but WITHOUT ANY WARRANTY; without even the
27  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
28  *                PARTICULAR PURPOSE.  See the GNU General Public
29  *                License for more details.
30  *
31  *                The GNU General Public License should be included with
32  *                this file.  If not, you can view it at
33  *                http://www.gnu.org/copyleft/gpl.html
34  *                or write to the Free Software Foundation, Inc., 59
35  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
36  *
37  *********************************************************************/
38
39
40 /* Don't need project.h, only this: */
41 struct configuration_spec;
42
43 /* Global variables */
44
45 #ifdef FEATURE_TOGGLE
46 /* Privoxy's toggle state */
47 extern int global_toggle_state;
48 #endif /* def FEATURE_TOGGLE */
49
50 extern const char *configfile;
51
52
53 /* The load_config function is now going to call:
54  * init_proxy_args, so it will need argc and argv.
55  * Since load_config will also be a signal handler,
56  * we need to have these globally available.
57  */
58 extern int Argc;
59 extern char * const * Argv;
60 extern short int MustReload;
61
62
63 extern struct configuration_spec * load_config(void);
64
65 #ifdef FEATURE_GRACEFUL_TERMINATION
66 void unload_current_config_file(void);
67 #endif
68
69 #endif /* ndef LOADCFG_H_INCLUDED */
70
71 /*
72   Local Variables:
73   tab-width: 3
74   end:
75 */