Query the server for its info
[cascardo/chat.git] / xmpp.c
diff --git a/xmpp.c b/xmpp.c
index ca9501e..8e37c78 100644 (file)
--- a/xmpp.c
+++ b/xmpp.c
@@ -89,6 +89,24 @@ hc_xmpp_is_sasl_enabled (hc_xmpp_t *xmpp)
   return xmpp->sasl & ENABLED;
 }
 
+int
+hc_xmpp_is_bind_supported (hc_xmpp_t *xmpp)
+{
+  return xmpp->bind & SUPPORTED;
+}
+
+int
+hc_xmpp_is_session_supported (hc_xmpp_t *xmpp)
+{
+  return xmpp->session & SUPPORTED;
+}
+
+int
+hc_xmpp_is_session_required (hc_xmpp_t *xmpp)
+{
+  return xmpp->session & REQUIRED;
+}
+
 char *
 hc_xmpp_server (hc_xmpp_t *xmpp)
 {