New journal event "output"

Redundant information, but incredibly useful when you want to figure
out what happened without a (still nonexistent) journal replay tool.
The redundancy could help making a journal replay tool more robust.

To enable, set econfig key keep_journal to at least 2.  Output events
are *not* flushed to disk immediately.
This commit is contained in:
Markus Armbruster 2011-04-04 08:09:25 +02:00
parent f04d1ae032
commit 4785662587
5 changed files with 68 additions and 4 deletions

View file

@ -33,12 +33,15 @@
#ifndef JOURNAL_H
#define JOURNAL_H
#include "types.h"
int journal_startup(void);
void journal_shutdown(void);
int journal_reopen(void);
void journal_login(void);
void journal_logout(void);
void journal_prng(unsigned);
void journal_output(struct player *, int, char *);
void journal_input(char *);
void journal_command(char *);
void journal_update(int);