Mercurial > pidgin.yaz
comparison libgaim/protocols/jabber/si.c @ 14294:8a6154a52b84
[gaim-migrate @ 16984]
get rid of some hardcoding of jabber IQ callbacks
this should let plugins add their own callbacks, I think
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 22 Aug 2006 18:28:00 +0000 |
parents | 645598a4ec04 |
children | 67a6716bf4a7 |
comparison
equal
deleted
inserted
replaced
14293:82373bb6a47a | 14294:8a6154a52b84 |
---|---|
189 void jabber_bytestreams_parse(JabberStream *js, xmlnode *packet) | 189 void jabber_bytestreams_parse(JabberStream *js, xmlnode *packet) |
190 { | 190 { |
191 GaimXfer *xfer; | 191 GaimXfer *xfer; |
192 JabberSIXfer *jsx; | 192 JabberSIXfer *jsx; |
193 xmlnode *query, *streamhost; | 193 xmlnode *query, *streamhost; |
194 const char *sid, *from; | 194 const char *sid, *from, *type; |
195 | |
196 if(!(type = xmlnode_get_attrib(packet, "type")) || strcmp(type, "set")) | |
197 return; | |
195 | 198 |
196 if(!(from = xmlnode_get_attrib(packet, "from"))) | 199 if(!(from = xmlnode_get_attrib(packet, "from"))) |
197 return; | 200 return; |
198 | 201 |
199 if(!(query = xmlnode_get_child(packet, "query"))) | 202 if(!(query = xmlnode_get_child(packet, "query"))) |