Changing "show URL info" handler to new style.
[privoxy.git] / jcc.h
1 #ifndef _JCC_H
2 #define _JCC_H
3 #define JCC_H_VERSION "$Id: jcc.h,v 1.1.1.1 2001/05/15 13:58:56 oes Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/jcc.h,v $
7  *
8  * Purpose     :  Main file.  Contains main() method, main loop, and 
9  *                the main connection-handling function.
10  *
11  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
12  *                IJBSWA team.  http://ijbswa.sourceforge.net
13  *
14  *                Based on the Internet Junkbuster originally written
15  *                by and Copyright (C) 1997 Anonymous Coders and 
16  *                Junkbusters Corporation.  http://www.junkbusters.com
17  *
18  *                This program is free software; you can redistribute it 
19  *                and/or modify it under the terms of the GNU General
20  *                Public License as published by the Free Software
21  *                Foundation; either version 2 of the License, or (at
22  *                your option) any later version.
23  *
24  *                This program is distributed in the hope that it will
25  *                be useful, but WITHOUT ANY WARRANTY; without even the
26  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
27  *                PARTICULAR PURPOSE.  See the GNU General Public
28  *                License for more details.
29  *
30  *                The GNU General Public License should be included with
31  *                this file.  If not, you can view it at
32  *                http://www.gnu.org/copyleft/gpl.html
33  *                or write to the Free Software Foundation, Inc., 59
34  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
35  *
36  * Revisions   :
37  *    $Log: jcc.h,v $
38  *    Revision 1.1.1.1  2001/05/15 13:58:56  oes
39  *    Initial import of version 2.9.3 source tree
40  *
41  *
42  *********************************************************************/
43 \f
44
45 /* Declare struct FILE for vars and funcs. */
46 #include <stdio.h>
47
48 /* All of our project's data types. */
49 #include "project.h"
50
51 #include "loadcfg.h"
52
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56
57 #define freez(X)  if(X) free(X); X = NULL
58
59
60 /* Global variables */
61
62
63 #ifdef STATISTICS
64 extern int urls_read;
65 extern int urls_rejected;
66 #endif /*def STATISTICS*/
67
68 extern struct client_state clients[];
69
70 extern struct file_list    files[];
71
72
73 /* Functions */
74
75 #ifdef __MINGW32__
76 int _main(int argc, const char *argv[]);
77 #else
78 int main(int argc, const char *argv[]);
79 #endif
80
81 /* Revision control strings from this header and associated .c file */
82 extern const char jcc_rcs[];
83 extern const char jcc_h_rcs[];
84
85 #ifdef __cplusplus
86 } /* extern "C" */
87 #endif
88
89 #endif /* ndef _JCC_H */
90
91 /*
92   Local Variables:
93   tab-width: 3
94   end:
95 */