summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-07-25 17:32:55 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-07-25 17:32:55 (GMT)
commit9f51e6c6279ae7fb541774ac4bf9debfa61395c1 (patch)
treed47cc48f4c162b09bf23b8ebf069a7855609b2b8 /Swiften/LinkLocal/AvahiDNSSDService.cpp
parentd2807a77d39bd1a359f5b85869113ed83e01c204 (diff)
downloadswift-contrib-9f51e6c6279ae7fb541774ac4bf9debfa61395c1.zip
swift-contrib-9f51e6c6279ae7fb541774ac4bf9debfa61395c1.tar.bz2
Move LinkLocalServiceID->DNSSDServiceID.
Diffstat (limited to 'Swiften/LinkLocal/AvahiDNSSDService.cpp')
-rw-r--r--Swiften/LinkLocal/AvahiDNSSDService.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Swiften/LinkLocal/AvahiDNSSDService.cpp b/Swiften/LinkLocal/AvahiDNSSDService.cpp
index fe9ac83..5f6295f 100644
--- a/Swiften/LinkLocal/AvahiDNSSDService.cpp
+++ b/Swiften/LinkLocal/AvahiDNSSDService.cpp
@@ -62,7 +62,7 @@ void AvahiDNSSDService::unregisterService() {
avahi_threaded_poll_unlock(threadedPoll);
}
-void AvahiDNSSDService::startResolvingService(const LinkLocalServiceID& service) {
+void AvahiDNSSDService::startResolvingService(const DNSSDServiceID& service) {
avahi_threaded_poll_lock(threadedPoll);
AvahiServiceResolver* resolver = avahi_service_resolver_new(
@@ -82,7 +82,7 @@ void AvahiDNSSDService::startResolvingService(const LinkLocalServiceID& service)
avahi_threaded_poll_unlock(threadedPoll);
}
-void AvahiDNSSDService::stopResolvingService(const LinkLocalServiceID& service) {
+void AvahiDNSSDService::stopResolvingService(const DNSSDServiceID& service) {
avahi_threaded_poll_lock(threadedPoll);
ServiceResolverMap::iterator i = serviceResolvers.find(service);
@@ -112,13 +112,13 @@ void AvahiDNSSDService::handleServiceDiscovered(AvahiServiceBrowser *, AvahiIfIn
return;
case AVAHI_BROWSER_NEW: {
std::cerr << "Service added: " << name << " " << type << " " << domain << std::endl;
- LinkLocalServiceID service(name, type, domain, interfaceIndex);
+ DNSSDServiceID service(name, type, domain, interfaceIndex);
MainEventLoop::postEvent(boost::bind(boost::ref(onServiceAdded), service), shared_from_this());
}
break;
case AVAHI_BROWSER_REMOVE: {
std::cerr << "Service removed: " << name << " " << type << " " << domain << std::endl;
- LinkLocalServiceID service(name, type, domain, interfaceIndex);
+ DNSSDServiceID service(name, type, domain, interfaceIndex);
MainEventLoop::postEvent(boost::bind(boost::ref(onServiceRemoved), service), shared_from_this());
}
break;
@@ -146,7 +146,7 @@ void AvahiDNSSDService::handleServiceResolved(AvahiServiceResolver *, AvahiIfInd
HostAddress hostAddress(reinterpret_cast<const unsigned char*>(&address->data.ipv4.address), 4);
hostnameAddresses[String(hostname)] = hostAddress;
MainEventLoop::postEvent(boost::bind(boost::ref(onServiceResolved),
- LinkLocalServiceID(name, type, domain, interfaceIndex),
+ DNSSDServiceID(name, type, domain, interfaceIndex),
ResolveResult(hostname, port,
LinkLocalServiceInfo::createFromTXTRecord(data))),
shared_from_this());