loadcfg.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef LOADCFG_H_INCLUDED
  2. #define LOADCFG_H_INCLUDED
  3. /*********************************************************************
  4. *
  5. * File : $Source: /cvsroot/ijbswa/current/loadcfg.h,v $
  6. *
  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.
  11. *
  12. * Copyright : Written by and Copyright (C) 2001 members of the
  13. * Privoxy team. https://www.privoxy.org/
  14. *
  15. * Based on the Internet Junkbuster originally written
  16. * by and Copyright (C) 1997 Anonymous Coders and
  17. * Junkbusters Corporation. http://www.junkbusters.com
  18. *
  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.
  24. *
  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.
  30. *
  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.
  36. *
  37. *********************************************************************/
  38. /* Don't need project.h, only this: */
  39. struct configuration_spec;
  40. /* Global variables */
  41. #ifdef FEATURE_TOGGLE
  42. /* Privoxy's toggle state */
  43. extern int global_toggle_state;
  44. #endif /* def FEATURE_TOGGLE */
  45. extern const char *configfile;
  46. /* The load_config function is now going to call:
  47. * init_proxy_args, so it will need argc and argv.
  48. * Since load_config will also be a signal handler,
  49. * we need to have these globally available.
  50. */
  51. extern int Argc;
  52. extern char * const * Argv;
  53. extern short int MustReload;
  54. extern struct configuration_spec * load_config(void);
  55. #ifdef FEATURE_GRACEFUL_TERMINATION
  56. void unload_current_config_file(void);
  57. #endif
  58. #endif /* ndef LOADCFG_H_INCLUDED */
  59. /*
  60. Local Variables:
  61. tab-width: 3
  62. end:
  63. */