Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/disco.c @ 26529:1ecbda91458a
Fix merge: Move the Jingle features to jabber.c
Maiku: Should these (specifically the voice and video) parts only be
advertised if the core indicates the current UI supports each individually?
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 04 Apr 2009 03:40:43 +0000 |
parents | 882748e27f9d |
children | 20743d9bd62d |
comparison
equal
deleted
inserted
replaced
26528:882748e27f9d | 26529:1ecbda91458a |
---|---|
146 if (!feat->is_enabled || feat->is_enabled(js, feat->namespace)) { | 146 if (!feat->is_enabled || feat->is_enabled(js, feat->namespace)) { |
147 feature = xmlnode_new_child(query, "feature"); | 147 feature = xmlnode_new_child(query, "feature"); |
148 xmlnode_set_attrib(feature, "var", feat->namespace); | 148 xmlnode_set_attrib(feature, "var", feat->namespace); |
149 } | 149 } |
150 } | 150 } |
151 #ifdef USE_VV | |
152 } else if (node && !strcmp(node, CAPS0115_NODE "#voice-v1")) { | |
153 SUPPORT_FEATURE("http://www.google.com/xmpp/protocol/session"); | |
154 SUPPORT_FEATURE("http://www.google.com/xmpp/protocol/voice/v1"); | |
155 SUPPORT_FEATURE(JINGLE); | |
156 SUPPORT_FEATURE(JINGLE_APP_RTP_SUPPORT_AUDIO); | |
157 SUPPORT_FEATURE(JINGLE_APP_RTP_SUPPORT_VIDEO); | |
158 SUPPORT_FEATURE(JINGLE_TRANSPORT_RAWUDP); | |
159 SUPPORT_FEATURE(JINGLE_TRANSPORT_ICEUDP); | |
160 #endif | |
161 } else { | 151 } else { |
162 xmlnode *error, *inf; | 152 xmlnode *error, *inf; |
163 | 153 |
164 /* XXX: gross hack, implement jabber_iq_set_type or something */ | 154 /* XXX: gross hack, implement jabber_iq_set_type or something */ |
165 xmlnode_set_attrib(iq->node, "type", "error"); | 155 xmlnode_set_attrib(iq->node, "type", "error"); |