2008-05-24 16:05:49 +08:00
|
|
|
/* tinyproxy - A fast light-weight HTTP proxy
|
|
|
|
* Copyright (C) 1998 Steven Young <sdyoung@miranda.org>
|
|
|
|
* Copyright (C) 1999 Robert James Kaes <rjkaes@users.sourceforge.net>
|
2000-02-17 01:32:49 +08:00
|
|
|
*
|
2008-05-24 16:05:49 +08:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
2000-02-17 01:32:49 +08:00
|
|
|
*
|
2008-05-24 16:05:49 +08:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2000-02-17 01:32:49 +08:00
|
|
|
*
|
2008-05-24 16:05:49 +08:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2000-02-17 01:32:49 +08:00
|
|
|
*/
|
|
|
|
|
2009-08-07 06:12:53 +08:00
|
|
|
/* See 'main.c' for detailed information. */
|
2008-05-24 16:05:49 +08:00
|
|
|
|
2009-08-07 06:12:53 +08:00
|
|
|
#ifndef __MAIN_H__
|
|
|
|
#define __MAIN_H__
|
2000-02-17 01:32:49 +08:00
|
|
|
|
2002-05-24 02:27:19 +08:00
|
|
|
#include "common.h"
|
2000-02-17 01:32:49 +08:00
|
|
|
|
|
|
|
/* Global variables for the main controls of the program */
|
2009-12-07 14:56:27 +08:00
|
|
|
#define MAXBUFFSIZE ((size_t)(1024 * 96)) /* Max size of buffer */
|
|
|
|
#define MAX_IDLE_TIME (60 * 10) /* 10 minutes of no activity */
|
2000-02-17 01:32:49 +08:00
|
|
|
|
|
|
|
/* Global Structures used in the program */
|
|
|
|
extern struct config_s config;
|
2008-12-08 21:39:44 +08:00
|
|
|
extern unsigned int received_sighup; /* boolean */
|
|
|
|
extern unsigned int processed_config_file; /* boolean */
|
2000-02-17 01:32:49 +08:00
|
|
|
|
2009-08-07 06:12:53 +08:00
|
|
|
#endif /* __MAIN_H__ */
|