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