Advertise IPv6 support on the show-status page.
[privoxy.git] / w32log.h
1 #ifndef W32LOG_H_INCLUDED
2 #define W32LOG_H_INCLUDED
3 #define W32LOG_H_VERSION "$Id: w32log.h,v 1.12 2006/07/18 14:48:48 david__schmidt 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-2009 members of
12  *                the Privoxy team.  http://www.privoxy.org/
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.12  2006/07/18 14:48:48  david__schmidt
38  *    Reorganizing the repository: swapping out what was HEAD (the old 3.1 branch)
39  *    with what was really the latest development (the v_3_0_branch branch)
40  *
41  *    Revision 1.10.2.2  2002/11/20 14:39:05  oes
42  *    Fixed compiler warning
43  *
44  *    Revision 1.10.2.1  2002/08/21 17:58:05  oes
45  *    Temp kludge to let user and default action file be edited through win32 GUI (FR 592080)
46  *
47  *    Revision 1.10  2002/03/26 22:57:10  jongfoster
48  *    Web server name should begin www.
49  *
50  *    Revision 1.9  2002/03/24 12:03:47  jongfoster
51  *    Name change
52  *
53  *    Revision 1.8  2001/07/30 22:08:36  jongfoster
54  *    Tidying up #defines:
55  *    - All feature #defines are now of the form FEATURE_xxx
56  *    - Permanently turned off WIN_GUI_EDIT
57  *    - Permanently turned on WEBDAV and SPLIT_PROXY_ARGS
58  *
59  *    Revision 1.7  2001/07/29 18:43:08  jongfoster
60  *    Changing #ifdef _FILENAME_H to FILENAME_H_INCLUDED, to conform to
61  *    ANSI C rules.
62  *
63  *    Revision 1.6  2001/07/13 14:04:59  oes
64  *    Removed all #ifdef PCRS
65  *
66  *    Revision 1.5  2001/06/07 23:08:12  jongfoster
67  *    Forward and ACL edit options removed.
68  *
69  *    Revision 1.4  2001/05/31 21:37:11  jongfoster
70  *    GUI changes to rename "permissions file" to "actions file".
71  *
72  *    Revision 1.3  2001/05/29 09:50:24  jongfoster
73  *    Unified blocklist/imagelist/permissionslist.
74  *    File format is still under discussion, but the internal changes
75  *    are (mostly) done.
76  *
77  *    Also modified interceptor behaviour:
78  *    - We now intercept all URLs beginning with one of the following
79  *      prefixes (and *only* these prefixes):
80  *        * http://i.j.b/
81  *        * http://ijbswa.sf.net/config/
82  *        * http://ijbswa.sourceforge.net/config/
83  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
84  *    - Internal changes so that intercepted and fast redirect pages
85  *      are not replaced with an image.
86  *    - Interceptors now have the option to send a binary page direct
87  *      to the client. (i.e. ijb-send-banner uses this)
88  *    - Implemented show-url-info interceptor.  (Which is why I needed
89  *      the above interceptors changes - a typical URL is
90  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
91  *      The previous mechanism would not have intercepted that, and
92  *      if it had been intercepted then it then it would have replaced
93  *      it with an image.)
94  *
95  *    Revision 1.2  2001/05/26 00:28:36  jongfoster
96  *    Automatic reloading of config file.
97  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
98  *    Most of the global variables have been moved to a new
99  *    struct configuration_spec, accessed through csp->config->globalname
100  *    Most of the globals remaining are used by the Win32 GUI.
101  *
102  *    Revision 1.1.1.1  2001/05/15 13:59:07  oes
103  *    Initial import of version 2.9.3 source tree
104  *
105  *
106  *********************************************************************/
107 \f
108
109 #ifdef __cplusplus
110 extern "C" {
111 #endif
112
113 extern HWND g_hwndLogFrame;
114
115 /* Indicates whether task bar shows activity animation */
116 extern BOOL g_bShowActivityAnimation;
117
118 /* Indicates if the log window appears on the task bar */
119 extern BOOL g_bShowOnTaskBar;
120
121 /* Indicates whether closing the log window really just hides it */
122 extern BOOL g_bCloseHidesWindow;
123
124 /* Indicates if messages are logged at all */
125 extern BOOL g_bLogMessages;
126
127 /* Indicates whether log messages are highlighted */
128 extern BOOL g_bHighlightMessages;
129
130 /* Indicates if buffer is limited in size */
131 extern BOOL g_bLimitBufferSize;
132
133 /* Maximum number of lines allowed in buffer when limited */
134 extern int g_nMaxBufferLines;
135
136 /* Font to use */
137 extern char g_szFontFaceName[32];
138
139 /* Size of font to use */
140 extern int g_nFontSize;
141
142
143 /* FIXME: this is a kludge */
144
145 extern const char * g_default_actions_file;
146 extern const char * g_user_actions_file;
147 extern const char * g_re_filterfile;
148 #ifdef FEATURE_TRUST
149 extern const char * g_trustfile;
150 #endif /* def FEATURE_TRUST */
151
152 /* FIXME: end kludge */
153
154 extern HICON g_hiconApp;
155 extern int LogPutString(const char *pszText);
156 extern BOOL InitLogWindow(void);
157 extern void TermLogWindow(void);
158 extern void ShowLogWindow(BOOL bShow);
159 extern void LogShowActivity(void);
160
161 /* Revision control strings from this header and associated .c file */
162 extern const char w32log_rcs[];
163 extern const char w32log_h_rcs[];
164
165 #ifdef __cplusplus
166 } /* extern "C" */
167 #endif
168
169 #endif /* ndef W32LOG_H_INCLUDED */
170
171
172 /*
173   Local Variables:
174   tab-width: 3
175   end:
176 */