mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
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
This commit is contained in:
parent
5061783f4c
commit
88b091cc95
6 changed files with 213 additions and 8 deletions
10
src/core/write-buffer.h
Normal file
10
src/core/write-buffer.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue