comparison mcabber/src/events.h @ 1598:a087125d8fc8

Replace libjabber with loudmouth
author franky
date Sun, 11 Oct 2009 15:38:32 +0200
parents 4a7db2870685
children 351427ef0b4b
comparison
equal deleted inserted replaced
1597:4f59a414217e 1598:a087125d8fc8
1 #ifndef __EVENTS_H__ 1 #ifndef __EVENTS_H__
2 #define __EVENTS_H__ 1 2 #define __EVENTS_H__ 1
3 3
4 #include "jabglue.h" 4 #include "xmpp.h"
5 5
6 6
7 #define EVS_DEFAULT_TIMEOUT 90 7 #define EVS_DEFAULT_TIMEOUT 90
8 #define EVS_MAX_TIMEOUT 432000 8 #define EVS_MAX_TIMEOUT 432000
9 9
22 time_t ts_create; 22 time_t ts_create;
23 time_t ts_expire; 23 time_t ts_expire;
24 guint8 type; 24 guint8 type;
25 gpointer data; 25 gpointer data;
26 int (*callback)(); 26 int (*callback)();
27 xmlnode xmldata;
28 char *desc; 27 char *desc;
29 } eviqs; 28 } eviqs;
30 29
31 typedef struct { 30 typedef struct {
32 char* to; 31 char* to;
33 char* from; 32 char* from;
34 char* passwd; 33 char* passwd;
35 char* reason; 34 char* reason;
36 } event_muc_invitation; 35 } event_muc_invitation;
37 36
38 eviqs *evs_new(guint8 type, time_t timeout); 37 eviqs *evs_new(guint8 type, time_t timeout);
39 int evs_del(const char *evid); 38 int evs_del(const char *evid);
40 int evs_callback(const char *evid, guint evcontext); 39 int evs_callback(const char *evid, guint evcontext);
41 void evs_check_timeout(time_t now_t); 40 gboolean evs_check_timeout();
42 void evs_display_list(void); 41 void evs_display_list(void);
43 GSList *evs_geteventslist(int forcompl); 42 GSList *evs_geteventslist(int forcompl);
44 43
45 #endif /* __EVENTS_H__ */ 44 #endif /* __EVENTS_H__ */
46 45
47 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */ 46 /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */