Makefile/in
[privoxy.git] / w32log.h
1 #ifndef _W32LOG_H
2 #define _W32LOG_H
3 #define W32LOG_H_VERSION "$Id: w32log.h,v 1.3 2001/05/29 09:50:24 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.3  2001/05/29 09:50:24  jongfoster
38  *    Unified blocklist/imagelist/permissionslist.
39  *    File format is still under discussion, but the internal changes
40  *    are (mostly) done.
41  *
42  *    Also modified interceptor behaviour:
43  *    - We now intercept all URLs beginning with one of the following
44  *      prefixes (and *only* these prefixes):
45  *        * http://i.j.b/
46  *        * http://ijbswa.sf.net/config/
47  *        * http://ijbswa.sourceforge.net/config/
48  *    - New interceptors "home page" - go to http://i.j.b/ to see it.
49  *    - Internal changes so that intercepted and fast redirect pages
50  *      are not replaced with an image.
51  *    - Interceptors now have the option to send a binary page direct
52  *      to the client. (i.e. ijb-send-banner uses this)
53  *    - Implemented show-url-info interceptor.  (Which is why I needed
54  *      the above interceptors changes - a typical URL is
55  *      "http://i.j.b/show-url-info?url=www.somesite.com/banner.gif".
56  *      The previous mechanism would not have intercepted that, and
57  *      if it had been intercepted then it then it would have replaced
58  *      it with an image.)
59  *
60  *    Revision 1.2  2001/05/26 00:28:36  jongfoster
61  *    Automatic reloading of config file.
62  *    Removed obsolete SIGHUP support (Unix) and Reload menu option (Win32).
63  *    Most of the global variables have been moved to a new
64  *    struct configuration_spec, accessed through csp->config->globalname
65  *    Most of the globals remaining are used by the Win32 GUI.
66  *
67  *    Revision 1.1.1.1  2001/05/15 13:59:07  oes
68  *    Initial import of version 2.9.3 source tree
69  *
70  *
71  *********************************************************************/
72 \f
73
74 #ifdef __cplusplus
75 extern "C" {
76 #endif
77
78 extern HWND g_hwndLogFrame;
79
80 /* Indicates whether task bar shows activity animation */
81 extern BOOL g_bShowActivityAnimation;
82
83 /* Indicates if the log window appears on the task bar */
84 extern BOOL g_bShowOnTaskBar;
85
86 /* Indicates whether closing the log window really just hides it */
87 extern BOOL g_bCloseHidesWindow;
88
89 /* Indicates if messages are logged at all */
90 extern BOOL g_bLogMessages;
91
92 /* Indicates whether log messages are highlighted */
93 extern BOOL g_bHighlightMessages;
94
95 /* Indicates if buffer is limited in size */
96 extern BOOL g_bLimitBufferSize;
97
98 /* Maximum number of lines allowed in buffer when limited */
99 extern int g_nMaxBufferLines;
100
101 /* Font to use */
102 extern char g_szFontFaceName[255];
103
104 /* Size of font to use */
105 extern int g_nFontSize;
106
107
108 /* FIXME: this is a kludge */
109
110 extern const char * g_actions_file;
111 extern const char * g_forwardfile;
112 #ifdef ACL_FILES
113 extern const char * g_aclfile;
114 #endif /* def ACL_FILES */
115 #ifdef PCRS
116 extern const char * g_re_filterfile;
117 #endif
118 #ifdef TRUST_FILES
119 extern const char * g_trustfile;
120 #endif /* def TRUST_FILES */
121
122 /* FIXME: end kludge */
123
124
125 extern int LogPutString(const char *pszText);
126 extern BOOL InitLogWindow(void);
127 extern void TermLogWindow(void);
128 extern void ShowLogWindow(BOOL bShow);
129 extern void LogShowActivity(void);
130
131 /* Revision control strings from this header and associated .c file */
132 extern const char w32log_rcs[];
133 extern const char w32log_h_rcs[];
134
135 #ifdef __cplusplus
136 } /* extern "C" */
137 #endif
138
139 #endif /* ndef _W32LOG_H */
140
141
142 /*
143   Local Variables:
144   tab-width: 3
145   end:
146 */