From da18eb10188a22fc1698a9b8466272f2826447db Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 26 Feb 2020 14:04:51 +0100 Subject: Drop pkgAcquire::Item::ModifyRetries() ABI hack --- apt-pkg/acquire-item.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apt-pkg/acquire-item.h') diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 7d23d89f8..d3f1bddf8 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -152,6 +152,9 @@ class pkgAcquire::Item : public WeakPointable /*{{{*/ */ std::string DestFile; + /** \brief Number of retries */ + unsigned int Retries; + /** \brief Invoked by the acquire worker when the object couldn't * be fetched. * @@ -231,8 +234,6 @@ class pkgAcquire::Item : public WeakPointable /*{{{*/ * no trailing newline. */ virtual std::string Custom600Headers() const; - // Retries should really be a member of the Item, but can't be for ABI reasons - APT_HIDDEN unsigned int &ModifyRetries(); // this is more a hack than a proper external interface, hence hidden APT_HIDDEN std::unordered_map &ModifyCustomFields(); // this isn't the super nicest interface either… -- cgit v1.2.3