• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/avahi-0.6.25/avahi-utils/

Lines Matching defs:domain

39 #include <avahi-common/domain.h>
66 char *domain;
83 char *name, *type, *domain;
128 static ServiceInfo *find_service(AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain) {
136 avahi_domain_equal(i->domain, domain))
143 static void print_service_line(Config *config, char c, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, int nl) {
159 avahi_escape_label(name, strlen(name), &e, &l), type, domain, nl ? "\n" : "");
166 n_columns-35, name, type, domain);
177 const char *domain,
198 print_service_line(i->config, '=', interface, protocol, name, type, domain, 0);
223 fprintf(stderr, _("Failed to resolve service '%s' of type '%s' in domain '%s': %s\n"), name, type, domain, avahi_strerror(avahi_client_errno(client)));
237 static ServiceInfo *add_service(Config *c, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain) {
243 if (!(i->resolver = avahi_service_resolver_new(client, interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, 0, service_resolver_callback, i))) {
245 fprintf(stderr, _("Failed to resolve service '%s' of type '%s' in domain '%s': %s\n"), name, type, domain, avahi_strerror(avahi_client_errno(client)));
257 i->domain = avahi_strdup(domain);
276 avahi_free(i->domain);
287 const char *domain,
301 if (find_service(interface, protocol, name, type, domain))
304 add_service(c, interface, protocol, name, type, domain);
306 print_service_line(c, '+', interface, protocol, name, type, domain, 1);
314 if (!(info = find_service(interface, protocol, name, type, domain)))
319 print_service_line(c, '-', interface, protocol, name, type, domain, 1);
340 static void browse_service_type(Config *c, const char *stype, const char *domain) {
357 domain,
378 const char *domain,
390 browse_service_type(c, type, domain);
423 c->domain,
441 const char *domain,
461 domain);
467 domain);
497 c->domain,
542 browse_service_type(config, config->stype, config->domain);
614 if (strstr(argv0, "domain"))
635 " -d --domain=DOMAIN The domain to browse in\n"
659 { "domain", required_argument, NULL, 'd' },
677 c->command = strstr(argv0, "domain") ? COMMAND_BROWSE_DOMAINS : COMMAND_BROWSE_SERVICES;
685 c->domain = c->stype = NULL;
711 avahi_free(c->domain);
712 c->domain = avahi_strdup(optarg);
853 avahi_free(config.domain);