Re: Patch: update Bonjour support to the newer non-deprecated API

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Patch: update Bonjour support to the newer non-deprecated API
Date: 2009-09-07 17:35:09
Message-ID: 8036.1252344909@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Tom Lane wrote:
>> Hmm, I read in their documentation that the dns_sd.h interface was
>> deprecated, but not that it had been intentionally disabled.

> I think it is supposed to work; the code suggests that it should. I
> can't quite find out what the error number is supposed to mean though.
> The source is here:
> http://avahi.sourcearchive.com/documentation/0.6.25-1ubuntu1/avahi-compat-libdns__sd_2compat_8c-source.html

> ... ah! here it is -- BadParam:
> http://avahi.sourcearchive.com/documentation/0.6.25-1ubuntu1/dns__sd_8h-source.html

Interesting. I coded the call to default everything it could, but maybe
Avahi is a little less forgiving about NULL parameters. In particular
it wouldn't surprise me if they thought that there *must* be a callback
function --- we're playing fast and loose with the API by not bothering
to check for a response from the daemon.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-09-07 18:01:27 Re: Patch: update Bonjour support to the newer non-deprecated API
Previous Message Tom Lane 2009-09-07 17:31:54 Re: Patch: update Bonjour support to the newer non-deprecated API