1 #ifndef LOADCFG_H_INCLUDED
2 #define LOADCFG_H_INCLUDED
3 /*********************************************************************
5 * File : $Source: /cvsroot/ijbswa/current/loadcfg.h,v $
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.
12 * Copyright : Written by and Copyright (C) 2001 members of the
13 * Privoxy team. http://www.privoxy.org/
15 * Based on the Internet Junkbuster originally written
16 * by and Copyright (C) 1997 Anonymous Coders and
17 * Junkbusters Corporation. http://www.junkbusters.com
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.
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.
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.
37 *********************************************************************/
40 /* Don't need project.h, only this: */
41 struct configuration_spec;
43 /* Global variables */
46 /* Privoxy's toggle state */
47 extern int global_toggle_state;
48 #endif /* def FEATURE_TOGGLE */
50 extern const char *configfile;
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.
59 extern char * const * Argv;
60 extern short int MustReload;
63 extern struct configuration_spec * load_config(void);
65 #ifdef FEATURE_GRACEFUL_TERMINATION
66 void unload_current_config_file(void);
69 #endif /* ndef LOADCFG_H_INCLUDED */