Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/disco.c @ 17561:a75079eae085
added preliminary frame for pep-support
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Wed, 06 Jun 2007 00:01:15 +0000 |
parents | d42de194a364 |
children | 6ab1089e2101 |
comparison
equal
deleted
inserted
replaced
17560:f41a561e3b7b | 17561:a75079eae085 |
---|---|
28 #include "iq.h" | 28 #include "iq.h" |
29 #include "disco.h" | 29 #include "disco.h" |
30 #include "jabber.h" | 30 #include "jabber.h" |
31 #include "presence.h" | 31 #include "presence.h" |
32 #include "roster.h" | 32 #include "roster.h" |
33 #include "pep.h" | |
33 | 34 |
34 struct _jabber_disco_info_cb_data { | 35 struct _jabber_disco_info_cb_data { |
35 gpointer data; | 36 gpointer data; |
36 JabberDiscoInfoCallback *callback; | 37 JabberDiscoInfoCallback *callback; |
37 }; | 38 }; |
259 | 260 |
260 for (child = xmlnode_get_child(query, "identity"); child; | 261 for (child = xmlnode_get_child(query, "identity"); child; |
261 child = xmlnode_get_next_twin(child)) { | 262 child = xmlnode_get_next_twin(child)) { |
262 const char *category, *type, *name; | 263 const char *category, *type, *name; |
263 category = xmlnode_get_attrib(child, "category"); | 264 category = xmlnode_get_attrib(child, "category"); |
265 type = xmlnode_get_attrib(child, "type"); | |
266 if(category && type && !strcmp(category, "pubsub") && !strcmp(type,"pep")) { | |
267 /* server supports pep, initialize it */ | |
268 jabber_pep_init(js); | |
269 } | |
264 if (!category || strcmp(category, "server")) | 270 if (!category || strcmp(category, "server")) |
265 continue; | 271 continue; |
266 type = xmlnode_get_attrib(child, "type"); | |
267 if (!type || strcmp(type, "im")) | 272 if (!type || strcmp(type, "im")) |
268 continue; | 273 continue; |
269 | 274 |
270 name = xmlnode_get_attrib(child, "name"); | 275 name = xmlnode_get_attrib(child, "name"); |
271 if (!name) | 276 if (!name) |