more info on not hiding ip address
[privoxy.git] / w32log.h
1 #ifndef W32LOG_H_INCLUDED
2 #define W32LOG_H_INCLUDED
3 #define W32LOG_H_VERSION "$Id: w32log.h,v 1.7 2001/07/29 18:43:08 jongfoster Exp $"
4 /*********************************************************************
5  *
6  * File        :  $Source: /cvsroot/ijbswa/current/w32log.h,v $
7  *
8  * Purpose     :  Functions for creating and destroying the log window,
9  *                ouputting strings, processing messages and so on.
10  *
11  * Copyright   :  Written by and Copyright (C) 2001 the SourceForge
12  *                IJBSWA team.  http://ijbswa.sourceforge.net
13  *
14  *                Written by and Copyright (C) 1999 Adam Lock
15  *                <locka@iol.ie>
16  *
17  *                This program is free software; you can redistribute it 
18  *                and/or modify it under the terms of the GNU General
19  *                Public License as published by the Free Software
20  *                Foundation; either version 2 of the License, or (at
21  *                your option) any later version.
22  *
23  *                This program is distributed in the hope that it will
24  *                be useful, but WITHOUT ANY WARRANTY; without even the
25  *                implied warranty of MERCHANTABILITY or FITNESS FOR A
26  *                PARTICULAR PURPOSE.  See the GNU General Public
27  *                License for more details.
28  *
29  *                The GNU General Public License should be included with
30  *                this file.  If not, you can view it at
31  *                http://www.gnu.org/copyleft/gpl.html
32  *                or write to the Free Software Foundation, Inc., 59
33  *                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
34  *
35  * Revisions   :
36  *    $Log: w32log.h,v $
37  *    Revision 1.7  2001/07/29 18:43:08  jongfoster
38  *    Changing #ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to
39  *    ANSI C rules.
40  *
41  *    Revision 1.6  2001/07/13 14:04:59  oes
42  *    Removed all #ifdef PCRS
43  *
44  *    Revision 1.5  2001/06/07 23:08:12  jongfoster
45  *    Forward and ACL edit options removed.
46  *
47  *    Revision 1.4  2001/05/31 21:37:11  jongfoster
48  *    GUI changes to rename "permissions file" to "actions file".
49  *
50  *    Revision 1.3  2001/05/29 09:50:24  jongfoster
51  *    Unified blocklist/imagelist/permissionslist.
52  *    File format is still under discussion, but the internal changes
53  *    are (mostly) done.
54  *
55  *    Also modified interceptor behaviour:
56  *    - We now intercept all URLs beginning with one of the following
57  *      prefixes (and *only* these prefixes):
58  *        * http://i.j.b/
59  *        * http://ijbswa.sf.net/config/
60  *        * http://ijbswa.sourceforge.net/config/
61  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
62  *    - Internal changes so that intercepted and fast redirect pages
63  *      are not replaced with an image.
64  *    - Interceptors now have the option to send a binary page direct
65  *      to the client. (i.e. ijb-send-banner uses this)
66  *    - Implemented show-url-info interceptor.  (Which is why I needed
67  *      the above interceptors changes - a typical URL is
68  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
69  *      The previous mechanism would not have intercepted that, and
70  *      if it had been intercepted then it then it would have replaced
71  *      it with an image.)
72  *
73  *    Revision 1.2  2001/05/26 00:28:36  jongfoster
74  *    Automatic reloading of config file.
75  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
76  *    Most of the global variables have been moved to a new
77  *    struct configuration_spec, accessed through csp->config->globalname
78  *    Most of the globals remaining are used by the Win32 GUI.
79  *
80  *    Revision 1.1.1.1  2001/05/15 13:59:07  oes
81  *    Initial import of version 2.9.3 source tree
82  *
83  *
84  *********************************************************************/
85 \f
86
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90
91 extern HWND g_hwndLogFrame;
92
93 /* Indicates whether task bar shows activity animation */
94 extern BOOL g_bShowActivityAnimation;
95
96 /* Indicates if the log window appears on the task bar */
97 extern BOOL g_bShowOnTaskBar;
98
99 /* Indicates whether closing the log window really just hides it */
100 extern BOOL g_bCloseHidesWindow;
101
102 /* Indicates if messages are logged at all */
103 extern BOOL g_bLogMessages;
104
105 /* Indicates whether log messages are highlighted */
106 extern BOOL g_bHighlightMessages;
107
108 /* Indicates if buffer is limited in size */
109 extern BOOL g_bLimitBufferSize;
110
111 /* Maximum number of lines allowed in buffer when limited */
112 extern int g_nMaxBufferLines;
113
114 /* Font to use */
115 extern char g_szFontFaceName[255];
116
117 /* Size of font to use */
118 extern int g_nFontSize;
119
120
121 /* FIXME: this is a kludge */
122
123 extern const char * g_actions_file;
124 extern const char * g_re_filterfile;
125 #ifdef FEATURE_TRUST
126 extern const char * g_trustfile;
127 #endif /* def FEATURE_TRUST */
128
129 /* FIXME: end kludge */
130
131 extern int LogPutString(const char *pszText);
132 extern BOOL InitLogWindow(void);
133 extern void TermLogWindow(void);
134 extern void ShowLogWindow(BOOL bShow);
135 extern void LogShowActivity(void);
136
137 /* Revision control strings from this header and associated .c file */
138 extern const char w32log_rcs[];
139 extern const char w32log_h_rcs[];
140
141 #ifdef __cplusplus
142 } /* extern "C" */
143 #endif
144
145 #endif /* ndef W32LOG_H_INCLUDED */
146
147
148 /*
149   Local Variables:
150   tab-width: 3
151   end:
152 */