X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fchat.git;a=blobdiff_plain;f=xmpp.h;h=7a0e0d097e9b51fd27f9e11e4e6953e10e1fad9b;hp=74cee4afd054fe43df7788f759de8099dd0f28e6;hb=fee0c9537ee0b8dc497fd789d0c20e5db09766a8;hpb=fda5401ec167ff1f13aabe4fa0bba5e788ee7cd7 diff --git a/xmpp.h b/xmpp.h index 74cee4a..7a0e0d0 100644 --- a/xmpp.h +++ b/xmpp.h @@ -22,12 +22,19 @@ #include +enum +{ + HC_XMPP_NONE, + HC_XMPP_AUTHENTICATED, + HC_XMPP_BOUND +}; + 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" -hc_xmpp_t * hc_xmpp_new (void); +hc_xmpp_t * hc_xmpp_new (iksStreamHook *, char *, char *, char *); int hc_xmpp_is_tls_supported (hc_xmpp_t *); int hc_xmpp_is_tls_required (hc_xmpp_t *); int hc_xmpp_is_tls_optional (hc_xmpp_t *); @@ -36,6 +43,11 @@ 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 *); +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 *); +void hc_xmpp_read_and_parse (hc_xmpp_t *); void hc_xmpp_features (hc_xmpp_t *, iks *); +int hc_xmpp_status (hc_xmpp_t *); #endif