summaryrefslogtreecommitdiff
path: root/src/core/write-buffer.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-02-10 05:54:35 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-02-10 05:54:35 +0000
commit88b091cc95b346da50d21ba2526c76d760ad97fa (patch)
tree399450424a0cef5abf985fd4d271edd557a448a8 /src/core/write-buffer.h
parent5061783f4ce035b2c432fa1b3a45f9213989a45a (diff)
downloadirssi-88b091cc95b346da50d21ba2526c76d760ad97fa.zip
Write buffer - logs and rawlogs write to files through this. By default
everything gets written immediately, but you can make it wait until there's specified amount of data in buffer or write once in a hour or so. Useful for people who want to keep hard disk at sleep at nights but still want to log. /SET write_buffer_mins, /SET write_buffer_kb: When to flush buffer. /FLUSHBUFFER: Flush the buffer immediately git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1201 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/write-buffer.h')
-rw-r--r--src/core/write-buffer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/write-buffer.h b/src/core/write-buffer.h
new file mode 100644
index 00000000..ef527440
--- /dev/null
+++ b/src/core/write-buffer.h
@@ -0,0 +1,10 @@
+#ifndef __WRITE_BUFFER_H
+#define __WRITE_BUFFER_H
+
+int write_buffer(int handle, const void *data, int size);
+void write_buffer_flush(void);
+
+void write_buffer_init(void);
+void write_buffer_deinit(void);
+
+#endif