comparison mcabber/src/events.h @ 745:413e95f3051a

Introduce user "events" list Not used yet. The events list (evs_list) will be used to queue events for user approval, for example subscription requests, file tranfers, etc. The evs stuff is actually almost the same as the iqs stuff, a lot of code is duplicated... :-\
author Mikael Berthe <mikael@lilotux.net>
date Mon, 13 Mar 2006 17:28:24 +0100
parents
children 9875bc774ddf
comparison
equal deleted inserted replaced
744:c3b76a1a07cb 745:413e95f3051a
1 #ifndef __EVENTS_H__
2 #define __EVENTS_H__ 1
3
4 #include "jabglue.h"
5
6
7 #define EVS_DEFAULT_TIMEOUT 90
8 #define EVS_MAX_TIMEOUT 600
9
10 #define EVS_CONTEXT_USER 0
11 #define EVS_CONTEXT_TIMEOUT 1
12
13 /* Common structure for events (evs) and IQ requests (iqs) */
14 typedef struct {
15 char *id;
16 time_t ts_create;
17 time_t ts_expire;
18 guint8 type;
19 gpointer data;
20 void (*callback)();
21 xmlnode xmldata;
22 } eviqs;
23
24
25 #endif /* __EVENTS_H__ */
26
27 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */