Mercurial > hg
view 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 |
line wrap: on
line source
#ifndef __HOOKS_H__ #define __HOOKS_H__ 1 #include <time.h> #include "jabglue.h" inline void hk_message_in(const char *jid, time_t timestamp, const char *msg); inline void hk_message_out(const char *jid, time_t timestamp, const char *msg); inline void hk_statuschange(const char *jid, time_t timestamp, enum imstatus status); #endif /* __HOOKS_H__ */