Added GLib loop main program
[cascardo/chat.git] / xmpp.c
diff --git a/xmpp.c b/xmpp.c
index ca9501e..283c68a 100644 (file)
--- a/xmpp.c
+++ b/xmpp.c
@@ -89,12 +89,36 @@ 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)
 {
   return xmpp->server;
 }
 
+int
+hc_xmpp_fd (hc_xmpp_t *xmpp)
+{
+  return xmpp->fd;
+}
+
 void
 hc_xmpp_send_buffer (hc_xmpp_t *xmpp, char *buffer, size_t len)
 {