Mercurial > ~mikael > mcabber > hg
diff mcabber/src/histolog.h @ 113:8ac67e951eab
[/trunk] Changeset 127 by mikael
* Add a "hooks" layer.
Hooks are used when multiples operations should be done when an event
araises. For example message in/out, status change...
2 more files; Makefile updated.
* Logging is ready.
* Add 2 options:
- "logging" (bool): enable/disable history logging
- "logging_dir" (char): root dir for logging files
* Document pinginterval (keepalive) in the sample config file.
* Send keepalive only when online.
author | mikael |
---|---|
date | Sun, 24 Apr 2005 20:24:18 +0000 |
parents | 3d41aca3d878 |
children | a51ce78a0e2a |
line wrap: on
line diff
--- a/mcabber/src/histolog.h Sun Apr 24 17:38:48 2005 +0000 +++ b/mcabber/src/histolog.h Sun Apr 24 20:24:18 2005 +0000 @@ -3,6 +3,13 @@ #include <glib.h> +#include "jabglue.h" + +void hlog_enable(guint enable, char *root_dir); +inline void hlog_write_message(const char *jid, time_t timestamp, int sent, + const char *msg); +inline void hlog_write_status(const char *jid, time_t timestamp, + enum imstatus status); #endif /* __HISTOLOG_H__ */