1 #ifndef LOADCFG_H_INCLUDED
2 #define LOADCFG_H_INCLUDED
3 #define LOADCFG_H_VERSION "$Id: loadcfg.h,v 1.17 2013/11/24 14:23:28 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 members of the
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 *********************************************************************/
41 /* Don't need project.h, only this: */
42 struct configuration_spec;
44 /* Global variables */
47 /* Privoxy's toggle state */
48 extern int global_toggle_state;
49 #endif /* def FEATURE_TOGGLE */
51 extern const char *configfile;
54 /* The load_config function is now going to call:
55 * init_proxy_args, so it will need argc and argv.
56 * Since load_config will also be a signal handler,
57 * we need to have these globally available.
60 extern char * const * Argv;
61 extern short int MustReload;
64 extern struct configuration_spec * load_config(void);
66 #ifdef FEATURE_GRACEFUL_TERMINATION
67 void unload_current_config_file(void);
70 /* Revision control strings from this header and associated .c file */
71 extern const char loadcfg_rcs[];
72 extern const char loadcfg_h_rcs[];
74 #endif /* ndef LOADCFG_H_INCLUDED */