Merge from vendor branch BIND:
[dragonfly.git] / contrib / cvs-1.12 / src / log-buffer.h
1 /* CVS client logging buffer.
2
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License as published by
5    the Free Software Foundation; either version 2, or (at your option)
6    any later version.
7
8    This program is distributed in the hope that it will be useful,
9    but WITHOUT ANY WARRANTY; without even the implied warranty of
10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11    GNU General Public License for more details.  */
12
13
14 #ifndef LOG_BUFFER_H__
15 #define LOG_BUFFER_H__
16
17 void setup_logfiles (char *var, struct buffer** to_server_p,
18                      struct buffer** from_server_p);
19
20 struct buffer *
21 log_buffer_initialize (struct buffer *buf, FILE *fp,
22 # ifdef PROXY_SUPPORT
23                        bool fatal_errors,
24                        size_t max,
25 # endif /* PROXY_SUPPORT */
26                        bool input,
27                        void (*memory) (struct buffer *));
28
29 # ifdef PROXY_SUPPORT
30 struct buffer *log_buffer_rewind (struct buffer *buf);
31 void log_buffer_closelog (struct buffer *buf);
32 # endif /* PROXY_SUPPORT */
33
34 #endif /* LOG_BUFFER_H__ */