Mercurial > pidgin.yaz
changeset 28886:9d6e1327f614
Add some additional debug output to the avahi mdns implemenation.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 06 Nov 2009 04:21:47 +0000 |
parents | 7963477c2019 |
children | 4b3ef6752037 562fd22dbe89 |
files | libpurple/protocols/bonjour/mdns_avahi.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/mdns_avahi.c Fri Nov 06 03:59:55 2009 +0000 +++ b/libpurple/protocols/bonjour/mdns_avahi.c Fri Nov 06 04:21:47 2009 +0000 @@ -150,6 +150,10 @@ } break; case AVAHI_RESOLVER_FOUND: + + purple_debug_info("bonjour", "_resolve_callback - name:%s account:%p bb:%p\n", + name, account, bb); + /* create a buddy record */ if (bb == NULL) bb = bonjour_buddy_new(name, account); @@ -173,8 +177,12 @@ /* Get the ip as a string */ + ip[0] = '\0'; avahi_address_snprint(ip, AVAHI_ADDRESS_STR_MAX, a); + purple_debug_info("bonjour", "_resolve_callback - name:%s ip:%s prev_ip:%s\n", + name, ip, rd->ip); + if (rd->ip == NULL || strcmp(rd->ip, ip) != 0) { /* We store duplicates in bb->ips, so we always remove the one */ if (rd->ip != NULL) {