X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fchat.git;a=blobdiff_plain;f=xmpp.h;h=f04cddbc238702b3372cd981f8cd7a5b20249f3b;hp=b33ad258f236ef2baed3512a38f1c9cd531bd389;hb=88e19a4fe878276d64b1aa2fcd5d1efa524508ba;hpb=1737bf08fa42284aa1a1c388594267b3b92fb0ec diff --git a/xmpp.h b/xmpp.h index b33ad25..f04cddb 100644 --- a/xmpp.h +++ b/xmpp.h @@ -31,6 +31,7 @@ enum }; typedef struct _hc_xmpp_t hc_xmpp_t; +typedef void (*hc_xmpp_hook_t) (hc_xmpp_t *, iks *); #define HC_XMPP_NS_TLS "urn:ietf:params:xml:ns:xmpp-tls" #define HC_XMPP_NS_SASL "urn:ietf:params:xml:ns:xmpp-sasl" @@ -60,5 +61,8 @@ void hc_xmpp_features (hc_xmpp_t *, iks *); int hc_xmpp_status (hc_xmpp_t *); int hc_xmpp_hook (void *, int, iks *); void hc_xmpp_send_stream (hc_xmpp_t *); +void hc_xmpp_set_msg_hook (hc_xmpp_t *, hc_xmpp_hook_t); +void hc_xmpp_register_ns_hook (hc_xmpp_t *, char *, hc_xmpp_hook_t); +void hc_xmpp_recv_message (hc_xmpp_t *, iks *); #endif