comparison 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
comparison
equal deleted inserted replaced
112:edb5591e2e64 113:8ac67e951eab
1 #ifndef __HISTOLOG_H__ 1 #ifndef __HISTOLOG_H__
2 #define __HISTOLOG_H__ 1 2 #define __HISTOLOG_H__ 1
3 3
4 #include <glib.h> 4 #include <glib.h>
5 5
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);
6 13
7 #endif /* __HISTOLOG_H__ */ 14 #endif /* __HISTOLOG_H__ */
8 15