Added usage of handlers to message and presence modules

This commit is contained in:
James Booth
2013-02-10 19:39:19 +00:00
parent 8c9f916246
commit ebc87b8b82
4 changed files with 160 additions and 95 deletions

View File

@@ -269,7 +269,8 @@ connection_free_resources(void)
}
int
connection_error_handler(xmpp_stanza_t * const stanza)
connection_error_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza,
void * const userdata)
{
gchar *err_msg = NULL;
gchar *from = xmpp_stanza_get_attribute(stanza, STANZA_ATTR_FROM);