Minor xml fix to xmpp server
[citadel.git] / citadel / modules / jabber / serv_xmpp.h
1 /*
2  * $Id: $
3  *
4  */
5
6 struct citxmpp {                        /* Information about the current session */
7         XML_Parser xp;                  /* XML parser instance for incoming client stream */
8         char server_name[256];          /* who they think we are */
9         char *chardata;
10         int chardata_len;
11         int chardata_alloc;
12         char client_jid[256];           /* "full JID" of the client */
13
14         char iq_type[256];
15         char iq_bind_id[256];           /* for <iq> stanzas */
16         char iq_client_resource[256];   /* resource name requested by the client */
17         int iq_session;                 /* nonzero == client is requesting a session */
18
19         char sasl_auth_mech[32];        /* SASL auth mechanism requested by the client */
20 };
21
22 #define XMPP ((struct citxmpp *)CC->session_specific_data)
23
24 void xmpp_cleanup_function(void);
25 void xmpp_greeting(void);
26 void xmpp_command_loop(void);
27 void xmpp_sasl_auth(char *, char *);
28 void xmpp_output_auth_mechs(void);