diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-04-22 20:15:50 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-04-22 20:15:50 (GMT) |
commit | 618bfa7276fe46f308a7ab8f003c785bf863c7e8 (patch) | |
tree | 2dbba21aed6e2d8659f129e677dd3bb968b47485 /Swiften/LinkLocal/DNSSD | |
parent | 353022b20f6fe6bddff9cab99e68fd8dde3d79b3 (diff) | |
download | swift-contrib-618bfa7276fe46f308a7ab8f003c785bf863c7e8.zip swift-contrib-618bfa7276fe46f308a7ab8f003c785bf863c7e8.tar.bz2 |
Add PlatformDNSSDQuerierFactory::canCreate().
Diffstat (limited to 'Swiften/LinkLocal/DNSSD')
-rw-r--r-- | Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.cpp | 8 | ||||
-rw-r--r-- | Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.cpp b/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.cpp index 279b125..56128f0 100644 --- a/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.cpp +++ b/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.cpp @@ -25,4 +25,12 @@ boost::shared_ptr<DNSSDQuerier> PlatformDNSSDQuerierFactory::createQuerier() { #endif } +bool PlatformDNSSDQuerierFactory::canCreate() { +#if defined(HAVE_BONJOUR) || defined(HAVE_AVAHI) + return true; +#else + return false; +#endif +} + } diff --git a/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.h b/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.h index c49fb4e..674c13a 100644 --- a/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.h +++ b/Swiften/LinkLocal/DNSSD/PlatformDNSSDQuerierFactory.h @@ -14,5 +14,7 @@ namespace Swift { class PlatformDNSSDQuerierFactory { public: boost::shared_ptr<DNSSDQuerier> createQuerier(); + + bool canCreate(); }; } |