diff mcabber/src/events.h @ 1128:ac9c89f6cb51

Support for invitations to muc rooms According to section "7.5" ("Inviting Another User to a Room") of the xep 0045 (about multi user chat), someone can invite you to a room. But it seems mcabber ignore this, so I have coded the missing support. [Patch slightly modified by Mikael]
author misc@mandriva.org
date Sat, 20 Jan 2007 18:41:13 +0100
parents 527d6f234924
children 4a7db2870685
line wrap: on
line diff
--- a/mcabber/src/events.h	Sun Jan 14 15:00:25 2007 +0100
+++ b/mcabber/src/events.h	Sat Jan 20 18:41:13 2007 +0100
@@ -12,7 +12,8 @@
 #define EVS_CONTEXT_USER    2U
 
 typedef enum {
-  EVS_TYPE_SUBSCRIPTION = 1
+  EVS_TYPE_SUBSCRIPTION = 1,
+  EVS_TYPE_INVITATION = 2
 } evs_type;
 
 /* Common structure for events (evs) and IQ requests (iqs) */
@@ -27,6 +28,13 @@
   char *desc;
 } eviqs;
 
+typedef struct {
+  char* to;
+  char* from;
+  char* passwd;
+  char* reason;
+} event_muc_invitation;
+
 eviqs  *evs_new(guint8 type, time_t timeout);
 int     evs_del(const char *evid);
 int     evs_callback(const char *evid, guint evcontext);