diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-12-04 21:49:44 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-12-04 23:52:36 (GMT) |
commit | 897ad55ffee76c9e84ffb174d700f6182a3e7d0b (patch) | |
tree | f31e6bd601cf5f1483a3f4ad5e79a492d3a9ca3e /Swiften/Network/DomainNameServiceQuery.h | |
parent | c8802e3bef6b73d349a711b187c72aea0a3dd964 (diff) | |
download | swift-contrib-897ad55ffee76c9e84ffb174d700f6182a3e7d0b.zip swift-contrib-897ad55ffee76c9e84ffb174d700f6182a3e7d0b.tar.bz2 |
Implemented CAresDomainNameResolver.
Diffstat (limited to 'Swiften/Network/DomainNameServiceQuery.h')
-rw-r--r-- | Swiften/Network/DomainNameServiceQuery.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Swiften/Network/DomainNameServiceQuery.h b/Swiften/Network/DomainNameServiceQuery.h index 3c08749..57e48d3 100644 --- a/Swiften/Network/DomainNameServiceQuery.h +++ b/Swiften/Network/DomainNameServiceQuery.h @@ -18,6 +18,12 @@ namespace Swift { int weight; }; + struct ResultPriorityComparator { + bool operator()(const DomainNameServiceQuery::Result& a, const DomainNameServiceQuery::Result& b) const { + return a.priority < b.priority; + } + }; + virtual ~DomainNameServiceQuery(); virtual void run() = 0; |