diff options
author | Julian Andres Klode <jak@debian.org> | 2020-02-26 20:26:42 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2020-02-26 20:26:42 +0000 |
commit | be22f24669bb6731b5835dc0e1b459d821683a9c (patch) | |
tree | a7937ab9aba3556760f0040727066a84a41f0006 /apt-pkg/contrib/srvrec.h | |
parent | c38e0047d95305e5984e822f670055cde6aa5f6a (diff) | |
parent | db678df196ccd8f9f6fb336706cf5701d1e53aa6 (diff) |
Merge branch 'pu/visibility' into 'master'
apt-pkg: default visibility to hidden
See merge request apt-team/apt!108
Diffstat (limited to 'apt-pkg/contrib/srvrec.h')
-rw-r--r-- | apt-pkg/contrib/srvrec.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index e22b7a1c6..e5d0f43a3 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -13,7 +13,9 @@ #include <vector> #include <arpa/nameser.h> -class SrvRec +#include <apt-pkg/macros.h> + +class APT_PUBLIC SrvRec { public: std::string target; @@ -40,15 +42,15 @@ class SrvRec /** \brief Get SRV records from host/port (builds the query string internally) */ -bool GetSrvRecords(std::string name, std::vector<SrvRec> &Result); +APT_PUBLIC 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); +APT_PUBLIC 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); +APT_PUBLIC SrvRec PopFromSrvRecs(std::vector<SrvRec> &Recs); #endif |