benoitc / dnssd_erlang

Erlang interface to Apple's Bonjour DNS Service Discovery implementation
Apache License 2.0
46 stars 16 forks source link

avahi warnings #3

Closed benoitc closed 13 years ago

benoitc commented 13 years ago

When building with avahi apple compatibility I get following warnings:

1>  dnssd:start().
ok
2> dnssd:browse("_http._tcp").
*** WARNING *** The program 'beam' uses the Apple Bonjour compatibility layer of Avahi.
                                                                                   *** WARNING *** Please fix your application to use the native API of Avahi!
                                                                                                                                                              *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=beam>
                                                                                 {ok,#Ref<0.0.0.35>}
andrewtj commented 13 years ago

This is just Avahi's not so subtle way of asking folks to use their API. I'll add some code to set AVAHI_COMPAT_NOWARN to 1 unless AVAHI_COMPAT_NOWARN has already been set.