annotate mcabber/src/hooks.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 |
|
children |
1e7e59775f12 |
rev |
line source |
113
|
1 #ifndef __HOOKS_H__
|
|
2 #define __HOOKS_H__ 1
|
|
3
|
|
4 #include <time.h>
|
|
5 #include "jabglue.h"
|
|
6
|
|
7
|
|
8 inline void hk_message_in(const char *jid, time_t timestamp, const char *msg);
|
|
9 inline void hk_message_out(const char *jid, time_t timestamp, const char *msg);
|
|
10 inline void hk_statuschange(const char *jid, time_t timestamp,
|
|
11 enum imstatus status);
|
|
12
|
|
13 #endif /* __HOOKS_H__ */
|