Lines Matching defs:group
40 static AvahiEntryGroup *group = NULL;
47 assert(g == group || group == NULL);
48 group = g;
50 /* Called whenever the entry group state changes */
54 /* The entry group has been established successfully */
76 fprintf(stderr, "Entry group failure: %s\n", avahi_strerror(avahi_client_errno(avahi_entry_group_get_client(g))));
94 * entry group if necessary */
96 if (!group)
97 if (!(group = avahi_entry_group_new(c, entry_group_callback, NULL))) {
102 /* If the group is empty (either because it was just created, or
105 if (avahi_entry_group_is_empty(group)) {
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)) {
143 if ((ret = avahi_entry_group_commit(group)) < 0) {
144 fprintf(stderr, "Failed to commit entry group: %s\n", avahi_strerror(ret));
161 avahi_entry_group_reset(group);
203 if (group)
204 avahi_entry_group_reset(group);
226 if (group)
227 avahi_entry_group_reset(group);