[Bug 47072] Add self-advertise support on Windows using the Apple Bonjour DNS-SD implementation

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 13 01:47:10 CET 2012


https://bugs.freedesktop.org/show_bug.cgi?id=47072

--- Comment #7 from Siraj Razick <siraj.razick at collabora.co.uk> 2012-03-12 17:47:10 PDT ---
(In reply to comment #6)
> Okay I had a look at this. It generally looks fine. A couple of minor points
> here. I'll only insist that the ones which break the build are fixed, the rest
> are up to you.
> 
Thank You very much for looking into it :).


Ok the patch is now updated with the changes suggested by comment #6 and #7.
(Including the improvements
suggested by Jonny).


I ran distcheck twice after updating the patches it passed fine.

and when rebaseing I had to add two more new patches. I didn't fix the
functionality for windows there
just the build / compile issues, Since I'm busy with the contactmanager/contact
for Bonjour backend.


> + case PROP_DISCOVERY_CLIENT:
> +   priv->discovery_client = g_value_get_object (value);
> +   g_object_ref (priv->discovery_client);
> 
> You can use g_value_dup_object here if you want.
> 
> + else if (!salut_bonjour_contact_has_services (SALUT_BONJOUR_CONTACT
> (contact)))
> +   {
> +    g_object_ref (contact);
> +   }
> 
> Indentation problem here.
> 
> + DEBUG("Browser removed for %s", name);
> 
> Missing space.
> 
> + if (mode)
> +   {
> +     error_type = DNSServiceUpdateRecord (priv->bonjour_service,
> +         *dns_record, 0, size, data, time_out);
> +
> +     if (error_type != kDNSServiceErr_NoError)
> +       {
> +         DEBUG ("Error Updating Record : (%d)", error_type);
> +         return error_type;
> +       }
> +   }
> + else
> +   {
> +     error_type = DNSServiceAddRecord (priv->bonjour_service,
> +         dns_record, 0, rrtype, size, data, time_out);
> +
> +     if (error_type != kDNSServiceErr_NoError)
> +       {
> +         DEBUG ("Error Adding Record : (%d)", error_type);
> +         return error_type;
> +       }
> +   }
> +
> + return error_type;
> 
> You could probably refactor this to remove most of the duplication here.
> 
> + /* Tubes are not currently supported by bonjour backend */
> +#ifdef USE_BACKEND_AVAHI
> 
> I wonder if it would better to use:
> 
>     #ifndef USE_BACKEND_BONJOUR ?
> 
> (In reply to comment #5)
> > additionally, you've rebased this quite weirdly, starting from this commit:
> 
> Yes this must be fixed before merging.
> 
> Now please please please run `make distcheck` and make sure it works, and
> report back here.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.



More information about the telepathy-bugs mailing list