Let sockaddr_storage_to_ip() assert that the address family is AF_INET or AF_INET6
[privoxy.git] / loadcfg.h
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 /*********************************************************************
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 members of the
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 /* Don't need project.h, only this: */
42 struct configuration_spec;
43
44 /* Global variables */
45
46 #ifdef FEATURE_TOGGLE
47 /* Privoxy's toggle state */
48 extern int global_toggle_state;
49 #endif /* def FEATURE_TOGGLE */
50
51 extern const char *configfile;
52
53
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.
58  */
59 extern int Argc;
60 extern char * const * Argv;
61 extern short int MustReload;
62
63
64 extern struct configuration_spec * load_config(void);
65
66 #ifdef FEATURE_GRACEFUL_TERMINATION
67 void unload_current_config_file(void);
68 #endif
69
70 /* Revision control strings from this header and associated .c file */
71 extern const char loadcfg_rcs[];
72 extern const char loadcfg_h_rcs[];
73
74 #endif /* ndef LOADCFG_H_INCLUDED */
75
76 /*
77   Local Variables:
78   tab-width: 3
79   end:
80 */