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

Lines Matching defs:name

42 static char *name = NULL;
55 fprintf(stderr, "Service '%s' successfully established.\n", name);
61 /* A service name collision with a remote service
62 * happened. Let's pick a new name */
63 n = avahi_alternative_service_name(name);
64 avahi_free(name);
65 name = n;
67 fprintf(stderr, "Service name collision, renaming service to '%s'\n", name);
106 fprintf(stderr, "Adding service '%s'\n", name);
112 * group. The two services have the same name, but differ in
114 * same name should be put in the same entry group. */
117 if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL)) < 0) {
127 if ((ret = avahi_entry_group_add_service(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) {
137 if ((ret = avahi_entry_group_add_service_subtype(group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, "_magic._sub._printer._tcp") < 0)) {
153 /* A service name collision with a local service happened. Let's
154 * pick a new name */
155 n = avahi_alternative_service_name(name);
156 avahi_free(name);
157 name = n;
159 fprintf(stderr, "Service name collision, renaming service to '%s'\n", name);
179 * name on the network, so it's time to create our services */
194 * again with the new host name. */
199 * might be caused by a host name change. We need to wait
200 * for our own records to register until the host name is
218 avahi_free(name);
219 name = avahi_strdup("Modified MegaPrinter");
229 /* And create them again with the new name */
246 name = avahi_strdup("MegaPrinter");
279 avahi_free(name);