Mercurial > pidgin
comparison src/protocols/bonjour/dns_sd.c @ 13906:b986b6e2441b
[gaim-migrate @ 16400]
part of sf patch #1490646, from Jonty Wareing & Jono Cole
"The user can now specify their AIM and Jabber ID in the
preferences"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 02 Jul 2006 21:52:06 +0000 |
parents | b10030f6eab7 |
children | 8264f52a1142 |
comparison
equal
deleted
inserted
replaced
13905:4e44ecb866bd | 13906:b986b6e2441b |
---|---|
249 sw_text_record_add_key_and_string_value(dns_data, "last", data->last); | 249 sw_text_record_add_key_and_string_value(dns_data, "last", data->last); |
250 /* sw_text_record_add_key_and_string_value(dns_data, "port.p2pj", itoa(data->port_p2pj)); */ | 250 /* sw_text_record_add_key_and_string_value(dns_data, "port.p2pj", itoa(data->port_p2pj)); */ |
251 sw_text_record_add_key_and_string_value(dns_data, "port.p2pj", BONJOUR_DEFAULT_PORT); | 251 sw_text_record_add_key_and_string_value(dns_data, "port.p2pj", BONJOUR_DEFAULT_PORT); |
252 sw_text_record_add_key_and_string_value(dns_data, "phsh", data->phsh); | 252 sw_text_record_add_key_and_string_value(dns_data, "phsh", data->phsh); |
253 sw_text_record_add_key_and_string_value(dns_data, "status", data->status); | 253 sw_text_record_add_key_and_string_value(dns_data, "status", data->status); |
254 sw_text_record_add_key_and_string_value(dns_data, "msg", data->msg); | |
255 sw_text_record_add_key_and_string_value(dns_data, "email", data->email); | |
256 sw_text_record_add_key_and_string_value(dns_data, "vc", data->vc); | 254 sw_text_record_add_key_and_string_value(dns_data, "vc", data->vc); |
257 sw_text_record_add_key_and_string_value(dns_data, "jid", data->jid); | 255 |
258 sw_text_record_add_key_and_string_value(dns_data, "AIM", data->AIM); | 256 if ((data->email != NULL) && (*data->email != '\0')) |
257 sw_text_record_add_key_and_string_value(dns_data, "email", data->email); | |
258 | |
259 if ((data->jid != NULL) && (*data->jid != '\0')) | |
260 sw_text_record_add_key_and_string_value(dns_data, "jid", data->jid); | |
261 | |
262 if ((data->AIM != NULL) && (*data->AIM != '\0')) | |
263 sw_text_record_add_key_and_string_value(dns_data, "AIM", data->AIM); | |
264 | |
265 if ((data->msg != NULL) && (*data->msg != '\0')) | |
266 sw_text_record_add_key_and_string_value(dns_data, "msg", data->msg); | |
259 | 267 |
260 /* Publish the service */ | 268 /* Publish the service */ |
261 switch (type) | 269 switch (type) |
262 { | 270 { |
263 case PUBLISH_START: | 271 case PUBLISH_START: |