Mercurial > pidgin
comparison libpurple/protocols/jabber/iq.c @ 26465:ae41d8e827e3
Convert all the XMPP IQ callbacks to a typedef similar to the IQ Handlers.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 13 Mar 2009 02:26:45 +0000 |
parents | 439f07ce4c8a |
children | 4f14455a86d2 |
comparison
equal
deleted
inserted
replaced
26464:a4a5825fb1bb | 26465:ae41d8e827e3 |
---|---|
352 } | 352 } |
353 | 353 |
354 /* First, lets see if a special callback got registered */ | 354 /* First, lets see if a special callback got registered */ |
355 if(type == JABBER_IQ_RESULT || type == JABBER_IQ_ERROR) { | 355 if(type == JABBER_IQ_RESULT || type == JABBER_IQ_ERROR) { |
356 if((jcd = g_hash_table_lookup(js->iq_callbacks, id))) { | 356 if((jcd = g_hash_table_lookup(js->iq_callbacks, id))) { |
357 jcd->callback(js, packet, jcd->data); | 357 jcd->callback(js, from, type, id, packet, jcd->data); |
358 jabber_iq_remove_callback_by_id(js, id); | 358 jabber_iq_remove_callback_by_id(js, id); |
359 return; | 359 return; |
360 } | 360 } |
361 } | 361 } |
362 | 362 |