diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mcabber/src/hooks.h	Sun Apr 24 20:24:18 2005 +0000
@@ -0,0 +1,13 @@
+#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__ */