Mercurial > pidgin.yaz
comparison src/protocols/jabber/xdata.c @ 13806:25e63008d3bb
[gaim-migrate @ 16229]
Use libxml2 for XML parsing, if available. The biggest benefit from this is actual support for XML namespaces. This fixes a handful of Google Talk integration problems, including typing notifications and buddy icons.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 08 Jun 2006 01:03:51 +0000 |
parents | 387ba791d5f9 |
children |
comparison
equal
deleted
inserted
replaced
13805:853fefb07c79 | 13806:25e63008d3bb |
---|---|
47 jabber_x_data_cb cb = data->cb; | 47 jabber_x_data_cb cb = data->cb; |
48 gpointer user_data = data->user_data; | 48 gpointer user_data = data->user_data; |
49 JabberStream *js = data->js; | 49 JabberStream *js = data->js; |
50 GList *groups, *flds; | 50 GList *groups, *flds; |
51 | 51 |
52 xmlnode_set_attrib(result, "xmlns", "jabber:x:data"); | 52 xmlnode_set_namespace(result, "jabber:x:data"); |
53 xmlnode_set_attrib(result, "type", "submit"); | 53 xmlnode_set_attrib(result, "type", "submit"); |
54 | 54 |
55 for(groups = gaim_request_fields_get_groups(fields); groups; groups = groups->next) { | 55 for(groups = gaim_request_fields_get_groups(fields); groups; groups = groups->next) { |
56 for(flds = gaim_request_field_group_get_fields(groups->data); flds; flds = flds->next) { | 56 for(flds = gaim_request_field_group_get_fields(groups->data); flds; flds = flds->next) { |
57 xmlnode *fieldnode, *valuenode; | 57 xmlnode *fieldnode, *valuenode; |
138 g_free(data->values->data); | 138 g_free(data->values->data); |
139 data->values = g_slist_delete_link(data->values, data->values); | 139 data->values = g_slist_delete_link(data->values, data->values); |
140 } | 140 } |
141 g_free(data); | 141 g_free(data); |
142 | 142 |
143 xmlnode_set_attrib(result, "xmlns", "jabber:x:data"); | 143 xmlnode_set_namespace(result, "jabber:x:data"); |
144 xmlnode_set_attrib(result, "type", "cancel"); | 144 xmlnode_set_attrib(result, "type", "cancel"); |
145 | 145 |
146 cb(js, result, user_data); | 146 cb(js, result, user_data); |
147 } | 147 } |
148 | 148 |