Mercurial > pidgin
comparison libpurple/protocols/bonjour/bonjour.c @ 17501:c96b085ddf5c
Clean up Bonjour service publishing and improve XEP-0174 compliance.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 05 Jun 2007 22:13:10 +0000 |
parents | d7b50cac1c7a |
children | a62a695ccfb5 |
comparison
equal
deleted
inserted
replaced
17500:bca2780f7669 | 17501:c96b085ddf5c |
---|---|
118 return; | 118 return; |
119 } | 119 } |
120 | 120 |
121 /* Connect to the mDNS daemon looking for buddies in the LAN */ | 121 /* Connect to the mDNS daemon looking for buddies in the LAN */ |
122 bd->dns_sd_data = bonjour_dns_sd_new(); | 122 bd->dns_sd_data = bonjour_dns_sd_new(); |
123 bd->dns_sd_data->name = purple_account_get_username(account); | |
124 bd->dns_sd_data->txtvers = g_strdup("1"); | |
125 bd->dns_sd_data->version = g_strdup("1"); | |
126 bd->dns_sd_data->first = g_strdup(purple_account_get_string(account, "first", default_firstname)); | 123 bd->dns_sd_data->first = g_strdup(purple_account_get_string(account, "first", default_firstname)); |
127 bd->dns_sd_data->last = g_strdup(purple_account_get_string(account, "last", default_lastname)); | 124 bd->dns_sd_data->last = g_strdup(purple_account_get_string(account, "last", default_lastname)); |
128 bd->dns_sd_data->port_p2pj = bd->jabber_data->port; | 125 bd->dns_sd_data->port_p2pj = bd->jabber_data->port; |
129 bd->dns_sd_data->phsh = g_strdup(""); | 126 /* Not engaged in AV conference */ |
130 bd->dns_sd_data->email = g_strdup(purple_account_get_string(account, "email", "")); | 127 bd->dns_sd_data->vc = g_strdup("!"); |
131 bd->dns_sd_data->vc = g_strdup(""); | |
132 bd->dns_sd_data->jid = g_strdup(purple_account_get_string(account, "jid", "")); | |
133 bd->dns_sd_data->AIM = g_strdup(purple_account_get_string(account, "AIM", "")); | |
134 | 128 |
135 status = purple_account_get_active_status(account); | 129 status = purple_account_get_active_status(account); |
136 presence = purple_account_get_presence(account); | 130 presence = purple_account_get_presence(account); |
137 if (purple_presence_is_available(presence)) | 131 if (purple_presence_is_available(presence)) |
138 bd->dns_sd_data->status = g_strdup("avail"); | 132 bd->dns_sd_data->status = g_strdup("avail"); |