comparison libpurple/protocols/jabber/si.c @ 28645:7b4ade7c6d8a

jabber: Start putting all the namespaces in one location with consistent naming.
author Paul Aurich <paul@darkrain42.org>
date Thu, 26 Nov 2009 22:35:07 +0000
parents fa7f3426ed13
children 9ae3e70a327b
comparison
equal deleted inserted replaced
28644:932661a155b7 28645:7b4ade7c6d8a
1208 char *val = xmlnode_get_data(value); 1208 char *val = xmlnode_get_data(value);
1209 if(val && !strcmp(val, "http://jabber.org/protocol/bytestreams")) { 1209 if(val && !strcmp(val, "http://jabber.org/protocol/bytestreams")) {
1210 jabber_si_xfer_bytestreams_send_init(xfer); 1210 jabber_si_xfer_bytestreams_send_init(xfer);
1211 jsx->stream_method |= STREAM_METHOD_BYTESTREAMS; 1211 jsx->stream_method |= STREAM_METHOD_BYTESTREAMS;
1212 found_method = TRUE; 1212 found_method = TRUE;
1213 } else if (val && !strcmp(val, XEP_0047_NAMESPACE)) { 1213 } else if (val && !strcmp(val, NS_IBB)) {
1214 jsx->stream_method |= STREAM_METHOD_IBB; 1214 jsx->stream_method |= STREAM_METHOD_IBB;
1215 if (!found_method) { 1215 if (!found_method) {
1216 /* we haven't tried to init a bytestream session, yet 1216 /* we haven't tried to init a bytestream session, yet
1217 start IBB right away... */ 1217 start IBB right away... */
1218 jabber_si_xfer_ibb_send_init(js, xfer); 1218 jabber_si_xfer_ibb_send_init(js, xfer);
1450 xfer->who = who; 1450 xfer->who = who;
1451 1451
1452 if (jbr) { 1452 if (jbr) {
1453 char *msg; 1453 char *msg;
1454 1454
1455 if (jabber_resource_has_capability(jbr, XEP_0047_NAMESPACE)) 1455 if (jabber_resource_has_capability(jbr, NS_IBB))
1456 jsx->stream_method |= STREAM_METHOD_IBB; 1456 jsx->stream_method |= STREAM_METHOD_IBB;
1457 if (jabber_resource_has_capability(jbr, "http://jabber.org/protocol/si/profile/file-transfer")) { 1457 if (jabber_resource_has_capability(jbr, "http://jabber.org/protocol/si/profile/file-transfer")) {
1458 jabber_si_xfer_send_request(xfer); 1458 jabber_si_xfer_send_request(xfer);
1459 return; 1459 return;
1460 } 1460 }