summaryrefslogtreecommitdiff
path: root/src/log-buffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log-buffer.h')
-rw-r--r--src/log-buffer.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/log-buffer.h b/src/log-buffer.h
new file mode 100644
index 0000000..f876d09
--- /dev/null
+++ b/src/log-buffer.h
@@ -0,0 +1,34 @@
+/* CVS client logging buffer.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details. */
+
+
+#ifndef LOG_BUFFER_H__
+#define LOG_BUFFER_H__
+
+void setup_logfiles (char *var, struct buffer** to_server_p,
+ struct buffer** from_server_p);
+
+struct buffer *
+log_buffer_initialize (struct buffer *buf, FILE *fp,
+# ifdef PROXY_SUPPORT
+ bool fatal_errors,
+ size_t max,
+# endif /* PROXY_SUPPORT */
+ bool input,
+ void (*memory) (struct buffer *));
+
+# ifdef PROXY_SUPPORT
+struct buffer *log_buffer_rewind (struct buffer *buf);
+void log_buffer_closelog (struct buffer *buf);
+# endif /* PROXY_SUPPORT */
+
+#endif /* LOG_BUFFER_H__ */