1 #ifndef LOADCFG_H_INCLUDED
2 #define LOADCFG_H_INCLUDED
3 #define LOADCFG_H_VERSION "$Id: loadcfg.h,v 1.15 2009/09/10 14:45:17 fabiankeil Exp $"
4 /*********************************************************************
6 * File : $Source: /cvsroot/ijbswa/current/loadcfg.h,v $
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.
13 * Copyright : Written by and Copyright (C) 2001 the SourceForge
14 * Privoxy team. http://www.privoxy.org/
16 * Based on the Internet Junkbuster originally written
17 * by and Copyright (C) 1997 Anonymous Coders and
18 * Junkbusters Corporation. http://www.junkbusters.com
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.
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.
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.
38 *********************************************************************/
45 /* Don't need project.h, only this: */
46 struct configuration_spec;
48 /* Global variables */
51 /* Privoxy's toggle state */
52 extern int global_toggle_state;
53 #endif /* def FEATURE_TOGGLE */
55 extern const char *configfile;
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.
64 extern char * const * Argv;
65 extern short int MustReload;
68 extern struct configuration_spec * load_config(void);
70 #ifdef FEATURE_GRACEFUL_TERMINATION
71 void unload_current_config_file(void);
74 /* Revision control strings from this header and associated .c file */
75 extern const char loadcfg_rcs[];
76 extern const char loadcfg_h_rcs[];
82 #endif /* ndef LOADCFG_H_INCLUDED */