Lines Matching refs:host
43 char *host; member
66 avahi_log_error("Host name conflict for \"%s\", not established.", h->host); in entry_group_callback()
70 avahi_log_notice ("Static host name \"%s\" successfully established.", h->host); in entry_group_callback()
74 …avahi_log_notice ("Failed to establish static host name \"%s\": %s.", h->host, avahi_strerror (ava… in entry_group_callback()
89 s->host = NULL; in static_host_new()
105 avahi_free(s->host); in static_host_free()
110 static StaticHost *static_host_find(const char *host, const AvahiAddress *a) { in static_host_find() argument
113 assert(host); in static_host_find()
117 if (!strcmp(h->host, host) && !avahi_address_cmp(a, &h->address)) in static_host_find()
141 …if ((err = avahi_server_add_address(avahi_server, h->group, AVAHI_IF_UNSPEC, p, 0, h->host, &h->ad… in add_static_host_to_server()
142 …avahi_log_error ("Static host name %s: avahi_server_add_address failure: %s", h->host, avahi_strer… in add_static_host_to_server()
187 char *host, *ip; in static_hosts_load() local
214 host = avahi_strndup(s, len); in static_hosts_load()
216 if (*host == 0) in static_hosts_load()
219 avahi_free(host); in static_hosts_load()
233 avahi_free(host); in static_hosts_load()
239 avahi_log_error("Static host name %s: failed to parse address %s", host, ip); in static_hosts_load()
240 avahi_free(host); in static_hosts_load()
247 if ((h = static_host_find(host, &a))) in static_hosts_load()
248 avahi_free(host); in static_hosts_load()
251 h->host = host; in static_hosts_load()
254 avahi_log_info("Loading new static hostname %s.", h->host); in static_hosts_load()
264 avahi_log_info("Static hostname %s vanished, removing.", h->host); in static_hosts_load()