annotate 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 |
rev |
line source |
110
|
1 #ifndef __HISTOLOG_H__ |
|
2 #define __HISTOLOG_H__ 1 |
|
3 |
|
4 #include <glib.h> |
|
5 |
113
|
6 #include "jabglue.h" |
|
7 |
|
8 void hlog_enable(guint enable, char *root_dir); |
|
9 inline void hlog_write_message(const char *jid, time_t timestamp, int sent, |
|
10 const char *msg); |
|
11 inline void hlog_write_status(const char *jid, time_t timestamp, |
|
12 enum imstatus status); |
110
|
13 |
|
14 #endif /* __HISTOLOG_H__ */ |
|
15 |