Mercurial > pidgin
comparison libpurple/protocols/jabber/google/jingleinfo.c @ 31481:b671728e6ee9
Use the new account-contextual DNS API everywhere. Refs #11110
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 19 Apr 2011 05:05:25 +0000 |
parents | a8cc50c2279f |
children | f22bc8b5b9dc |
comparison
equal
deleted
inserted
replaced
31480:c6193e7def81 | 31481:b671728e6ee9 |
---|---|
107 if (server) { | 107 if (server) { |
108 const gchar *host = xmlnode_get_attrib(server, "host"); | 108 const gchar *host = xmlnode_get_attrib(server, "host"); |
109 const gchar *udp = xmlnode_get_attrib(server, "udp"); | 109 const gchar *udp = xmlnode_get_attrib(server, "udp"); |
110 | 110 |
111 if (host && udp) { | 111 if (host && udp) { |
112 PurpleAccount *account; | |
112 int port = atoi(udp); | 113 int port = atoi(udp); |
113 /* if there, would already be an ongoing query, | 114 /* if there, would already be an ongoing query, |
114 cancel it */ | 115 cancel it */ |
115 if (js->stun_query) | 116 if (js->stun_query) |
116 purple_dnsquery_destroy(js->stun_query); | 117 purple_dnsquery_destroy(js->stun_query); |
117 | 118 |
118 js->stun_query = purple_dnsquery_a(host, port, | 119 account = purple_connection_get_account(js->gc); |
120 js->stun_query = purple_dnsquery_a_account(account, host, port, | |
119 jabber_google_stun_lookup_cb, js); | 121 jabber_google_stun_lookup_cb, js); |
120 } | 122 } |
121 } | 123 } |
122 } | 124 } |
123 | 125 |