summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/srvrec.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-05-22 08:55:14 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-05-22 08:55:14 +0200
commita01695e82cfbfa6e296c66879c1e41802d3ea413 (patch)
tree35e7c3453f4ff3031b8c557ee7080e700179d5c3 /apt-pkg/contrib/srvrec.h
parent8194f97685b4af2bbf0cdbdc88fe5332ad147353 (diff)
WIP make connect use GetSrvRecords
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r--apt-pkg/contrib/srvrec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h
index 78d238c46..fd71e697f 100644
--- a/apt-pkg/contrib/srvrec.h
+++ b/apt-pkg/contrib/srvrec.h
@@ -26,6 +26,12 @@ class SrvRec
}
};
+/** \brief Get SRV records from host/port (builds the query string internally)
+ */
bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result);
+/** \brief Get SRV records for query string like: _http._tcp.example.com
+ */
+bool GetSrvRecords(std::string host, int port, std::vector<SrvRec> &Result);
+
#endif