diff options
Diffstat (limited to 'Swiften/Network/DomainNameServiceQuery.h')
-rw-r--r-- | Swiften/Network/DomainNameServiceQuery.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Network/DomainNameServiceQuery.h b/Swiften/Network/DomainNameServiceQuery.h index 3ba3a00..fb44e82 100644 --- a/Swiften/Network/DomainNameServiceQuery.h +++ b/Swiften/Network/DomainNameServiceQuery.h @@ -9,6 +9,7 @@ #include "Swiften/Base/boost_bsignals.h" #include <boost/optional.hpp> #include <vector> +#include <boost/shared_ptr.hpp> #include "Swiften/Base/String.h" #include "Swiften/Network/DomainNameResolveError.h" @@ -16,6 +17,8 @@ namespace Swift { class DomainNameServiceQuery { public: + typedef boost::shared_ptr<DomainNameServiceQuery> ref; + struct Result { Result(const String& hostname = "", int port = -1, int priority = -1, int weight = -1) : hostname(hostname), port(port), priority(priority), weight(weight) {} String hostname; |