+
+ for (i = s->subtypes; i; i = i->next) {
+
+ if (avahi_server_add_service_subtype(
+ avahi_server,
+ g->entry_group,
+ AVAHI_IF_UNSPEC, s->protocol,
+ 0,
+ g->chosen_name, s->type, s->domain_name,
+ (char*) i->text) < 0) {
+
+ avahi_log_error("Failed to add subtype '%s' for service '%s' of type '%s', ignoring subtype (%s): %s",
+ i->text, g->chosen_name, s->type, g->filename,
+ avahi_strerror(avahi_server_errno(avahi_server)));
+ }
+ }