Lines Matching refs:group
36 static AvahiSEntryGroup *group = NULL;
44 assert(g == group);
46 /* Called whenever the entry group state changes */
52 /* The entry group has been established successfully */
73 fprintf(stderr, "Entry group failure: %s\n", avahi_strerror(avahi_server_errno(s)));
90 /* If this is the first time we're called, let's create a new entry group */
91 if (!group)
92 if (!(group = avahi_s_entry_group_new(s, entry_group_callback, NULL))) {
103 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) {
109 if ((ret = avahi_server_add_service(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, name, "_printer._tcp", NULL, NULL, 515, NULL)) < 0) {
115 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)) {
121 if ((ret = avahi_s_entry_group_commit(group)) < 0) {
143 if (!group)
174 if (group)
175 avahi_s_entry_group_reset(group);