Mercurial > pidgin
comparison libpurple/protocols/jabber/caps.c @ 25035:affaa4c4836e
* some code style adjustments in caps.c
* some DNS API changes to prepare TXT record resolving support
author | Tobias Markmann <tfar@soc.pidgin.im> |
---|---|
date | Fri, 01 Aug 2008 12:34:33 +0000 |
parents | 6606566f15ff |
children | 9ab681f23007 |
comparison
equal
deleted
inserted
replaced
25034:6606566f15ff | 25035:affaa4c4836e |
---|---|
196 | 196 |
197 static void jabber_caps_store_client(gpointer key, gpointer value, gpointer user_data) { | 197 static void jabber_caps_store_client(gpointer key, gpointer value, gpointer user_data) { |
198 JabberCapsKey *clientinfo = key; | 198 JabberCapsKey *clientinfo = key; |
199 JabberCapsValue *props = value; | 199 JabberCapsValue *props = value; |
200 xmlnode *root = user_data; | 200 xmlnode *root = user_data; |
201 xmlnode *client = xmlnode_new_child(root,"client"); | 201 xmlnode *client = xmlnode_new_child(root, "client"); |
202 GList *iter; | 202 GList *iter; |
203 | 203 |
204 xmlnode_set_attrib(client,"node", clientinfo->node); | 204 xmlnode_set_attrib(client, "node", clientinfo->node); |
205 xmlnode_set_attrib(client,"ver", clientinfo->ver); | 205 xmlnode_set_attrib(client, "ver", clientinfo->ver); |
206 xmlnode_set_attrib(client,"hash", clientinfo->hash); | 206 xmlnode_set_attrib(client, "hash", clientinfo->hash); |
207 for(iter = props->identities; iter; iter = g_list_next(iter)) { | 207 for(iter = props->identities; iter; iter = g_list_next(iter)) { |
208 JabberCapsIdentity *id = iter->data; | 208 JabberCapsIdentity *id = iter->data; |
209 xmlnode *identity = xmlnode_new_child(client, "identity"); | 209 xmlnode *identity = xmlnode_new_child(client, "identity"); |
210 xmlnode_set_attrib(identity, "category", id->category); | 210 xmlnode_set_attrib(identity, "category", id->category); |
211 xmlnode_set_attrib(identity, "type", id->type); | 211 xmlnode_set_attrib(identity, "type", id->type); |