]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/serv_xmpp.h
Define an XMPP queue...
[citadel.git] / citadel / modules / jabber / serv_xmpp.h
index 9898f8a7d8edab8715181c4e7aba561416894fbc..ec488308c026f94f2938b1c277d1cda5d3811c3f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id$
+ * $Id$
  *
  */
 
@@ -11,16 +11,32 @@ struct citxmpp {                    /* Information about the current session */
        int chardata_alloc;
        char client_jid[256];           /* "full JID" of the client */
 
-       char iq_bind_id[256];           /* for <iq> stanzas */
+       char iq_type[256];              /* for <iq> stanzas */
+       char iq_id[256];
+       char iq_from[256];
+       char iq_to[256];
        char iq_client_resource[256];   /* resource name requested by the client */
+       int iq_session;                 /* nonzero == client is requesting a session */
+       char iq_query_xmlns[256];       /* Namespace of <query> */
 
        char sasl_auth_mech[32];        /* SASL auth mechanism requested by the client */
 };
 
 #define XMPP ((struct citxmpp *)CC->session_specific_data)
 
+struct xmpp_event {
+       struct xmpp_event *next;
+       int event_type;
+       char event_jid[256];
+};
+
+extern struct xmpp_event *xmpp_queue;
+
 void xmpp_cleanup_function(void);
 void xmpp_greeting(void);
 void xmpp_command_loop(void);
 void xmpp_sasl_auth(char *, char *);
 void xmpp_output_auth_mechs(void);
+void xmpp_query_namespace(char *, char *, char *, char *);
+void jabber_wholist_presence_dump(void);
+void jabber_output_incoming_messages(void);