Added support for resouce binding and session establishment
[cascardo/chat.git] / xmpp.h
diff --git a/xmpp.h b/xmpp.h
index 7a0e0d0..706f15c 100644 (file)
--- a/xmpp.h
+++ b/xmpp.h
@@ -26,13 +26,16 @@ enum
 {
   HC_XMPP_NONE,
   HC_XMPP_AUTHENTICATED,
-  HC_XMPP_BOUND
+  HC_XMPP_BOUND,
+  HC_XMPP_SESSION
 };
 
 typedef struct _hc_xmpp_t hc_xmpp_t;
 
 #define HC_XMPP_NS_TLS "urn:ietf:params:xml:ns:xmpp-tls"
 #define HC_XMPP_NS_SASL "urn:ietf:params:xml:ns:xmpp-sasl"
+#define HC_XMPP_NS_BIND "urn:ietf:params:xml:ns:xmpp-bind"
+#define HC_XMPP_NS_SESSION "urn:ietf:params:xml:ns:xmpp-session"
 
 hc_xmpp_t * hc_xmpp_new (iksStreamHook *, char *, char *, char *);
 int hc_xmpp_is_tls_supported (hc_xmpp_t *);
@@ -43,6 +46,9 @@ int hc_xmpp_is_sasl_supported (hc_xmpp_t *);
 int hc_xmpp_is_sasl_required (hc_xmpp_t *);
 int hc_xmpp_is_sasl_optional (hc_xmpp_t *);
 int hc_xmpp_is_sasl_enabled (hc_xmpp_t *);
+int hc_xmpp_is_bind_supported (hc_xmpp_t *);
+int hc_xmpp_is_session_supported (hc_xmpp_t *);
+int hc_xmpp_is_session_required (hc_xmpp_t *);
 char *hc_xmpp_server (hc_xmpp_t *);
 void hc_xmpp_send_buffer (hc_xmpp_t *, char *, size_t);
 void hc_xmpp_send_iks (hc_xmpp_t *, iks *);