Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

jcc.h

Go to the documentation of this file.
00001 #ifndef JCC_H_INCLUDED
00002 #define JCC_H_INCLUDED
00003 #define JCC_H_VERSION "$Id: jcc.h,v 2.0 2002/06/04 14:34:21 jongfoster Exp $"
00004 /* ******************************************************************
00005  * $Source: /cvsroot/ijbswa/current/src/jcc.h,v $
00006  * ******************************************************************
00007  *
00008  * Written by and Copyright (C) 2001 the SourceForge
00009  * Privoxy team. http://www.privoxy.org/
00010  * 
00011  * Based on the Internet Junkbuster originally written
00012  * by and Copyright (C) 1997 Anonymous Coders and
00013  * Junkbusters Corporation.  http://www.junkbusters.com
00014  * 
00015  * This program is free software; you can redistribute it
00016  * and/or modify it under the terms of the GNU General
00017  * Public License as published by the Free Software
00018  * Foundation; either version 2 of the License, or (at
00019  * your option) any later version.
00020  * 
00021  * This program is distributed in the hope that it will
00022  * be useful, but WITHOUT ANY WARRANTY; without even the
00023  * implied warranty of MERCHANTABILITY or FITNESS FOR A
00024  * PARTICULAR PURPOSE.  See the GNU General Public
00025  * License for more details.
00026  * 
00027  * The GNU General Public License should be included with
00028  * this file.  If not, you can view it at
00029  * http://www.gnu.org/copyleft/gpl.html
00030  * or write to the Free Software Foundation, Inc., 59
00031  * Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00032  * 
00033  * *****************************************************************/
00034 /**
00035  * @file
00036  *
00037  * Main file.  Contains main() method, main loop, and
00038  * the main connection-handling function.
00039  * 
00040  *
00041  * $Log: jcc.h,v $
00042  * Revision 2.0  2002/06/04 14:34:21  jongfoster
00043  * Moving source files to src/
00044  * 
00045  * Revision 1.12  2002/03/26 22:29:55  swa
00046  * we have a new homepage!
00047  * 
00048  * Revision 1.11  2002/03/24 13:25:43  swa
00049  * name change related issues
00050  * 
00051  * Revision 1.10  2002/03/16 23:54:06  jongfoster
00052  * Adding graceful termination feature, to help look for memory leaks.
00053  * If you enable this (which, by design, has to be done by hand
00054  * editing config.h) and then go to http://i.j.b/die, then the program
00055  * will exit cleanly after the *next* request.  It should free all the
00056  * memory that was used.
00057  * 
00058  * Revision 1.9  2002/03/07 03:52:44  oes
00059  * Set logging to tty for --no-daemon mode
00060  * 
00061  * Revision 1.8  2002/03/04 18:19:49  oes
00062  * Added extern const char *pidfile
00063  * 
00064  * Revision 1.7  2001/11/05 21:41:43  steudten
00065  * Add changes to be a real daemon just for unix os.
00066  * (change cwd to /, detach from controlling tty, set
00067  * process group and session leader to the own process.
00068  * Add DBG() Macro.
00069  * Add some fatal-error log message for failed malloc().
00070  * Add '-d' if compiled with 'configure --with-debug' to
00071  * enable debug output.
00072  * 
00073  * Revision 1.6  2001/07/30 22:08:36  jongfoster
00074  * Tidying up #defines:
00075  * - All feature #defines are now of the form FEATURE_xxx
00076  * - Permanently turned off WIN_GUI_EDIT
00077  * - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
00078  * 
00079  * Revision 1.5  2001/07/29 19:32:00  jongfoster
00080  * Renaming _main() [mingw32 only] to real_main(), for ANSI compliance.
00081  * 
00082  * Revision 1.4  2001/07/29 18:58:15  jongfoster
00083  * Removing nested #includes, adding forward declarations for needed
00084  * structures, and changing the #define _FILENAME_H to FILENAME_H_INCLUDED.
00085  * 
00086  * Revision 1.3  2001/07/18 12:31:58  oes
00087  * moved #define freez from jcc.h to project.h
00088  * 
00089  * Revision 1.2  2001/05/31 21:24:47  jongfoster
00090  * Changed "permission" to "action" throughout.
00091  * Removed DEFAULT_USER_AGENT - it must now be specified manually.
00092  * Moved vanilla wafer check into chat(), since we must now
00093  * decide whether or not to add it based on the URL.
00094  * 
00095  * Revision 1.1.1.1  2001/05/15 13:58:56  oes
00096  * Initial import of version 2.9.3 source tree
00097  * 
00098  * 
00099  */
00100 /* *****************************************************************/
00101 
00102 
00103 #ifdef __cplusplus
00104 extern "C" {
00105 #endif
00106 
00107 struct client_state;
00108 struct file_list;
00109 
00110 /* Global variables */
00111 
00112 #ifdef FEATURE_STATISTICS
00113 extern int urls_read;
00114 extern int urls_rejected;
00115 #endif /*def FEATURE_STATISTICS*/
00116 
00117 extern struct client_state clients[];
00118 extern struct file_list    files[];
00119 
00120 #ifdef unix
00121 extern const char *pidfile;
00122 #endif
00123 extern int no_daemon;
00124 
00125 #ifdef FEATURE_GRACEFUL_TERMINATION
00126 extern int g_terminate;
00127 #endif
00128 
00129 /* Functions */
00130 
00131 #ifdef __MINGW32__
00132 int real_main(int argc, const char *argv[]);
00133 #else
00134 int main(int argc, const char *argv[]);
00135 #endif
00136 
00137 /* Revision control strings from this header and associated .c file */
00138 
00139 /** Version information about jcc.c. */
00140 extern const char jcc_rcs[];
00141 
00142 /** Version information about jcc.h. */
00143 extern const char jcc_h_rcs[];
00144 
00145 #ifdef __cplusplus
00146 } /* extern "C" */
00147 #endif
00148 
00149 #endif /* ndef JCC_H_INCLUDED */
00150 
00151 /*
00152   Local Variables:
00153   tab-width: 3
00154   end:
00155 */

Generated on Tue Jun 4 18:54:48 2002 for Privoxy 3.1.1 by doxygen1.2.15