assert(domain);
assert(callback);
- if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0)
+ if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0) {
+ AVAHI_WARN_UNSUPPORTED;
return kDNSServiceErr_Unsupported;
+ }
if (!(sdref = sdref_new()))
return kDNSServiceErr_Unknown;
assert(domain);
assert(callback);
- if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0)
+ if (interface == kDNSServiceInterfaceIndexLocalOnly || flags != 0) {
+ AVAHI_WARN_UNSUPPORTED;
return kDNSServiceErr_Unsupported;
+ }
if (!(sdref = sdref_new()))
return kDNSServiceErr_Unknown;
assert(callback);
if (interface == kDNSServiceInterfaceIndexLocalOnly ||
- (flags != kDNSServiceFlagsBrowseDomains && flags != kDNSServiceFlagsRegistrationDomains))
+ (flags != kDNSServiceFlagsBrowseDomains && flags != kDNSServiceFlagsRegistrationDomains)) {
+ AVAHI_WARN_UNSUPPORTED;
return kDNSServiceErr_Unsupported;
+ }
if (!(sdref = sdref_new()))
return kDNSServiceErr_Unknown;
assert(callback);
assert(regtype);
- if (interface == kDNSServiceInterfaceIndexLocalOnly || flags)
+ if (interface == kDNSServiceInterfaceIndexLocalOnly || flags) {
+ AVAHI_WARN_UNSUPPORTED;
return kDNSServiceErr_Unsupported;
+ }
if (!(sdref = sdref_new()))
return kDNSServiceErr_Unknown;
char exename[256];
get_exe_name(exename, sizeof(exename));
- fprintf(stderr, "*** WARNING: The application '%s' called '%s()' which is not supported in the Bonjour compatiblity layer of Avahi. Please fix it to use the native API! ***\n", exename, function);
+ fprintf(stderr, "*** WARNING: The application '%s' called '%s()' which is not supported (or only supported partially) in the Bonjour compatiblity layer of Avahi. Please fix it to use the native API! ***\n", exename, function);
}