summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/srvrec.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2015-08-20 10:40:45 +0200
committerMichael Vogt <mvo@debian.org>2015-08-20 11:41:51 +0200
commitc29dbdffcb6f67812f823f1f844b87320cf6b437 (patch)
tree41a98cd8af9886a4cf68b68a4034d635b94737b2 /apt-pkg/contrib/srvrec.h
parent9b70edba6796ebff3935af1cfb5c9bbc98d020b4 (diff)
Add basic (non weight adjusted) shuffling for SrvRecords selection
Also add "Debug::Acquire::SrvRecs" debug option and the option "Acquire::EnableSrvRecods" to allow disabling this lookup.
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r--apt-pkg/contrib/srvrec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h
index 9323623a5..e07edc683 100644
--- a/apt-pkg/contrib/srvrec.h
+++ b/apt-pkg/contrib/srvrec.h
@@ -39,4 +39,9 @@ bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result);
*/
bool GetSrvRecords(std::string host, int port, std::vector<SrvRec> &Result);
+/** \brief Pop a single SRV record from the vector of SrvRec taking
+ * priority and weight into account
+ */
+SrvRec PopFromSrvRecs(std::vector<SrvRec> &Recs);
+
#endif