Lines Matching defs:group
38 static AvahiSEntryGroup *group = NULL;
46 assert(g == group);
48 /* Called whenever the entry group state changes */
54 /* The entry group has been established successfully */
75 fprintf(stderr, "Entry group failure: %s\n", avahi_strerror(avahi_server_errno(s)));
92 /* If this is the first time we're called, let's create a new entry group */
93 if (!group)
94 if (!(group = avahi_s_entry_group_new(s, entry_group_callback, NULL))) {
105 if ((ret = avahi_server_add_service(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_ipp._tcp", NULL, NULL, 651, "test=blah", r, NULL)) < 0) {
111 if ((ret = avahi_server_add_service(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) {
117 if ((ret = avahi_server_add_service_subtype(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, "_magic._sub._printer._tcp") < 0)) {
123 if ((ret = avahi_s_entry_group_commit(group)) < 0) {
145 if (!group)
176 if (group)
177 avahi_s_entry_group_reset(group);