X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=xmpp.h;h=c76bb064219efaefc0bdaabc71dd1df9b2258f9f;hb=5288c13efe67885e6fb9384484b98293eeac535a;hp=7a0e0d097e9b51fd27f9e11e4e6953e10e1fad9b;hpb=fee0c9537ee0b8dc497fd789d0c20e5db09766a8;p=cascardo%2Fchat.git diff --git a/xmpp.h b/xmpp.h index 7a0e0d0..c76bb06 100644 --- a/xmpp.h +++ b/xmpp.h @@ -26,13 +26,18 @@ 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" +#define HC_XMPP_NS_DISCO "http://jabber.org/protocol/disco" +#define HC_XMPP_NS_DISCO_INFO "http://jabber.org/protocol/disco#info" hc_xmpp_t * hc_xmpp_new (iksStreamHook *, char *, char *, char *); int hc_xmpp_is_tls_supported (hc_xmpp_t *); @@ -43,6 +48,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 *);