X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fchat.git;a=blobdiff_plain;f=xmpp.c;h=8e37c78ebb520d2ec4b1a8dcd9bd66b913601a40;hp=ca9501eced3af739d27632dee2c1b13ebd9f2581;hb=8729c58972d65ab4b4b7ef3da9bcaf0d7f237d4c;hpb=fee0c9537ee0b8dc497fd789d0c20e5db09766a8 diff --git a/xmpp.c b/xmpp.c index ca9501e..8e37c78 100644 --- 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) {