From 97a1943d41d0bf067ddd3b6a465ba447d41923de Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 9 May 2020 12:17:45 +0300 Subject: Wrap the SASL property callback So that a library user's SASL property callback gets a pointer to the whole rexmpp structure at once, similarly to other callbacks. --- src/rexmpp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rexmpp.h') diff --git a/src/rexmpp.h b/src/rexmpp.h index 97592f7..cb650a3 100644 --- a/src/rexmpp.h +++ b/src/rexmpp.h @@ -199,7 +199,7 @@ enum rexmpp_err { typedef enum rexmpp_err rexmpp_err_t; typedef void (*log_function_t) (rexmpp_t *s, int priority, const char *format, va_list args); -typedef int (*sasl_property_cb_t) (Gsasl *ctx, Gsasl_session *sctx, Gsasl_property prop); +typedef int (*sasl_property_cb_t) (rexmpp_t *s, Gsasl_property prop); typedef int (*xml_in_cb_t) (rexmpp_t *s, xmlNodePtr node); typedef int (*xml_out_cb_t) (rexmpp_t *s, xmlNodePtr node); -- cgit v1.2.3