Bump generated Firefox version to 5.0
[privoxy.git] / loadcfg.h
1 #ifndef LOADCFG_H_INCLUDED
2 #define LOADCFG_H_INCLUDED
3 #define LOADCFG_H_VERSION "$Id: loadcfg.h,v 1.14 2009/05/16 13:27:20 fabiankeil 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  *                Privoxy team. http://www.privoxy.org/
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  *********************************************************************/
39
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 /* Don't need project.h, only this: */
46 struct configuration_spec;
47
48 /* Global variables */
49
50 #ifdef FEATURE_TOGGLE
51 /* Privoxy's toggle state */
52 extern int global_toggle_state;
53 #endif /* def FEATURE_TOGGLE */
54
55 extern const char *configfile;
56
57
58 /* The load_config function is now going to call:
59  * init_proxy_args, so it will need argc and argv.
60  * Since load_config will also be a signal handler,
61  * we need to have these globally available.
62  */
63 extern int Argc;
64 extern char * const * Argv;
65 extern short int MustReload;
66
67
68 extern struct configuration_spec * load_config(void);
69
70 #ifdef FEATURE_GRACEFUL_TERMINATION
71 void unload_current_config_file(void);
72 #endif
73
74 /* Revision control strings from this header and associated .c file */
75 extern const char loadcfg_rcs[];
76 extern const char loadcfg_h_rcs[];
77
78 #ifdef __cplusplus
79 } /* extern "C" */
80 #endif
81
82 #endif /* ndef LOADCFG_H_INCLUDED */
83
84 /*
85   Local Variables:
86   tab-width: 3
87   end:
88 */