X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fhcxmpp.git;a=blobdiff_plain;f=xmpp_internal.h;h=af75a88d8adea9f1d14624d7753bfbe4b01bfb24;hp=d46fcf98368e7b880edf5702261cfedc5a7a174e;hb=HEAD;hpb=8729c58972d65ab4b4b7ef3da9bcaf0d7f237d4c diff --git a/xmpp_internal.h b/xmpp_internal.h index d46fcf9..af75a88 100644 --- a/xmpp_internal.h +++ b/xmpp_internal.h @@ -20,6 +20,7 @@ #ifndef HC_XMPP_INTERNAL_H #define HC_XMPP_INTERNAL_H +#include #include #include #include "xmpp.h" @@ -41,6 +42,11 @@ struct _hc_xmpp_t iksparser *parser; Gsasl *sasl_ctx; Gsasl_session *sasl_session; + hc_xmpp_hook_t msghook; + hc_xmpp_hook_t sentmsghook; + hc_xmpp_hook_t preshook; + hc_xmpp_hook_t sentpreshook; + GHashTable *nshooks; int fd; int tls; int sasl; @@ -49,4 +55,8 @@ struct _hc_xmpp_t int status; }; +void hc_xmpp_hook_bind (hc_xmpp_t *, iks *); +void hc_xmpp_hook_session (hc_xmpp_t *, iks *); +void hc_xmpp_hook_disco (hc_xmpp_t *, iks *); + #endif