Mercurial > pidgin
comparison src/protocols/jabber/iq.c @ 8262:b5dbd1839716
[gaim-migrate @ 8985]
this is jabber new-style file transfer receive support. this doesn't do much error checking or handling, but I managed to send pictures to myself from Exodus on my laptop in the living room, which would have taken twice as long were it not for VNC. i said i was going to bed 1, 2, and 3 hours ago. i should go to bed.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 15 Feb 2004 10:11:38 +0000 |
parents | a64774143a42 |
children | ba12d8b12ab0 |
comparison
equal
deleted
inserted
replaced
8261:7b57c3bd9db6 | 8262:b5dbd1839716 |
---|---|
265 SUPPORT_FEATURE("jabber:iq:last") | 265 SUPPORT_FEATURE("jabber:iq:last") |
266 SUPPORT_FEATURE("jabber:iq:oob") | 266 SUPPORT_FEATURE("jabber:iq:oob") |
267 SUPPORT_FEATURE("jabber:iq:time") | 267 SUPPORT_FEATURE("jabber:iq:time") |
268 SUPPORT_FEATURE("jabber:iq:version") | 268 SUPPORT_FEATURE("jabber:iq:version") |
269 SUPPORT_FEATURE("jabber:x:conference") | 269 SUPPORT_FEATURE("jabber:x:conference") |
270 /* | |
271 SUPPORT_FEATURE("http://jabber.org/protocol/bytestreams") | 270 SUPPORT_FEATURE("http://jabber.org/protocol/bytestreams") |
272 */ | |
273 SUPPORT_FEATURE("http://jabber.org/protocol/disco#info") | 271 SUPPORT_FEATURE("http://jabber.org/protocol/disco#info") |
274 SUPPORT_FEATURE("http://jabber.org/protocol/disco#items") | 272 SUPPORT_FEATURE("http://jabber.org/protocol/disco#items") |
273 #if 0 | |
274 SUPPORT_FEATURE("http://jabber.org/protocol/ibb") | |
275 #endif | |
275 SUPPORT_FEATURE("http://jabber.org/protocol/muc") | 276 SUPPORT_FEATURE("http://jabber.org/protocol/muc") |
276 SUPPORT_FEATURE("http://jabber.org/protocol/muc#user") | 277 SUPPORT_FEATURE("http://jabber.org/protocol/muc#user") |
277 /* | |
278 SUPPORT_FEATURE("http://jabber.org/protocol/si") | 278 SUPPORT_FEATURE("http://jabber.org/protocol/si") |
279 SUPPORT_FEATURE("http://jabber.org/protocol/si/profile/file-transfer") | 279 SUPPORT_FEATURE("http://jabber.org/protocol/si/profile/file-transfer") |
280 */ | |
281 SUPPORT_FEATURE("http://jabber.org/protocol/xhtml-im") | 280 SUPPORT_FEATURE("http://jabber.org/protocol/xhtml-im") |
282 | 281 |
283 jabber_iq_send(iq); | 282 jabber_iq_send(iq); |
284 } else if(!strcmp(type, "result")) { | 283 } else if(!strcmp(type, "result")) { |
285 xmlnode *query = xmlnode_get_child(packet, "query"); | 284 xmlnode *query = xmlnode_get_child(packet, "query"); |
409 jabber_roster_parse(js, packet); | 408 jabber_roster_parse(js, packet); |
410 return; | 409 return; |
411 } else if(!strcmp(xmlns, "jabber:iq:oob")) { | 410 } else if(!strcmp(xmlns, "jabber:iq:oob")) { |
412 jabber_oob_parse(js, packet); | 411 jabber_oob_parse(js, packet); |
413 return; | 412 return; |
413 } else if(!strcmp(xmlns, "http://jabber.org/protocol/bytestreams")) { | |
414 jabber_bytestreams_parse(js, packet); | |
415 return; | |
414 } | 416 } |
415 } else if(!strcmp(type, "get")) { | 417 } else if(!strcmp(type, "get")) { |
416 if(!strcmp(xmlns, "jabber:iq:last")) { | 418 if(!strcmp(xmlns, "jabber:iq:last")) { |
417 jabber_iq_handle_last(js, packet); | 419 jabber_iq_handle_last(js, packet); |
418 return; | 420 return; |
438 return; | 440 return; |
439 } else if(!strcmp(xmlns, "http://jabber.org/protocol/disco#info")) { | 441 } else if(!strcmp(xmlns, "http://jabber.org/protocol/disco#info")) { |
440 jabber_disco_info_parse(js, packet); | 442 jabber_disco_info_parse(js, packet); |
441 return; | 443 return; |
442 } | 444 } |
445 } | |
446 } else { | |
447 xmlnode *si; | |
448 if((si = xmlnode_get_child(packet, "si")) && (xmlns = xmlnode_get_attrib(si, "xmlns")) && | |
449 !strcmp(xmlns, "http://jabber.org/protocol/si")) { | |
450 jabber_si_parse(js, packet); | |
451 return; | |
443 } | 452 } |
444 } | 453 } |
445 | 454 |
446 /* If we got here, no pre-defined handlers got it, lets see if a special | 455 /* If we got here, no pre-defined handlers got it, lets see if a special |
447 * callback got registered */ | 456 * callback got registered */ |