void DnsSdRegistry::ServiceTypeData::ListenerAdded() {
ref_count++;
-};
+}
bool DnsSdRegistry::ServiceTypeData::ListenerRemoved() {
return --ref_count == 0;
-};
+}
int DnsSdRegistry::ServiceTypeData::GetListenerCount() {
return ref_count;
<< ", known: " << known
<< ", updated or added: " << updated_or_added;
return updated_or_added;
-};
+}
bool DnsSdRegistry::ServiceTypeData::RemoveService(
const std::string& service_name) {
}
}
return false;
-};
+}
bool DnsSdRegistry::ServiceTypeData::ClearServices() {
+ lister_->Discover(false);
+
if (service_list_.empty())
return false;