Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/disco.c @ 25637:92e71f6e10d4
Patch from Marcus Lundblad ('mlundblad') to improve audio support in xmpp.
It's now possible to initiate an audio session, sometimes. It's somewhat
buggy.
Some other issues also need to be resolved:
* Properly get rid of the compile warnings
* Rename the serv_ functions with proper namespacing.
* Possibly rename the purple_media_ functions that don't deal with a
PurpleMedia (e.g. purple_media_audio_init_src) to something different,
e.g. purple_media_util_, or even purple_gst_util etc.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 22 Mar 2008 04:45:46 +0000 |
parents | 60f5abc6cf0c |
children | d0ac3c438b71 |
comparison
equal
deleted
inserted
replaced
25636:e4a4bc86c547 | 25637:92e71f6e10d4 |
---|---|
77 | 77 |
78 | 78 |
79 void jabber_disco_info_parse(JabberStream *js, xmlnode *packet) { | 79 void jabber_disco_info_parse(JabberStream *js, xmlnode *packet) { |
80 const char *from = xmlnode_get_attrib(packet, "from"); | 80 const char *from = xmlnode_get_attrib(packet, "from"); |
81 const char *type = xmlnode_get_attrib(packet, "type"); | 81 const char *type = xmlnode_get_attrib(packet, "type"); |
82 | 82 |
83 if(!from || !type) | 83 if(!from || !type) |
84 return; | 84 return; |
85 | 85 |
86 if(!strcmp(type, "get")) { | 86 if(!strcmp(type, "get")) { |
87 xmlnode *query, *identity, *feature; | 87 xmlnode *query, *identity, *feature; |
103 xmlnode_set_attrib(iq->node, "to", from); | 103 xmlnode_set_attrib(iq->node, "to", from); |
104 query = xmlnode_get_child(iq->node, "query"); | 104 query = xmlnode_get_child(iq->node, "query"); |
105 | 105 |
106 if(node) | 106 if(node) |
107 xmlnode_set_attrib(query, "node", node); | 107 xmlnode_set_attrib(query, "node", node); |
108 | 108 |
109 if(!node || !strcmp(node, CAPS0115_NODE "#" VERSION)) { | 109 if(!node || !strcmp(node, CAPS0115_NODE "#" VERSION)) { |
110 identity = xmlnode_new_child(query, "identity"); | 110 identity = xmlnode_new_child(query, "identity"); |
111 xmlnode_set_attrib(identity, "category", "client"); | 111 xmlnode_set_attrib(identity, "category", "client"); |
112 xmlnode_set_attrib(identity, "type", "pc"); /* XXX: bot, console, | 112 xmlnode_set_attrib(identity, "type", "pc"); /* XXX: bot, console, |
113 * handheld, pc, phone, | 113 * handheld, pc, phone, |