Lines Matching refs:legacy_unicast_reflect_slots
695 if (!s->legacy_unicast_reflect_slots)
696 s->legacy_unicast_reflect_slots = avahi_new0(AvahiLegacyUnicastReflectSlot*, AVAHI_LEGACY_UNICAST_REFLECT_SLOTS_MAX);
701 if (!s->legacy_unicast_reflect_slots[idx])
705 if (idx == (unsigned) -1 || s->legacy_unicast_reflect_slots[idx])
711 s->legacy_unicast_reflect_slots[idx] = slot;
726 assert(s->legacy_unicast_reflect_slots[idx] == slot);
731 s->legacy_unicast_reflect_slots[idx] = NULL;
738 if (!s->legacy_unicast_reflect_slots)
742 if (s->legacy_unicast_reflect_slots[idx])
743 deallocate_slot(s, s->legacy_unicast_reflect_slots[idx]);
745 avahi_free(s->legacy_unicast_reflect_slots);
746 s->legacy_unicast_reflect_slots = NULL;
754 if (!s->legacy_unicast_reflect_slots)
759 if (!s->legacy_unicast_reflect_slots[idx] || s->legacy_unicast_reflect_slots[idx]->id != id)
762 return s->legacy_unicast_reflect_slots[idx];
1421 s->legacy_unicast_reflect_slots = NULL;