From f299c09e2eae51391a07ae8708ca789df721321a Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sat, 15 Feb 2025 15:29:27 +0100 Subject: cacheset: Drop APT_PUBLIC from templates These templates are all inline and there is not much sense exposing their vtables and typeinfo publicly. --- apt-pkg/cacheset.h | 4 ++-- debian/libapt-pkg7.0.symbols | 15 --------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/apt-pkg/cacheset.h b/apt-pkg/cacheset.h index f3f3e967f..02dda7ee6 100644 --- a/apt-pkg/cacheset.h +++ b/apt-pkg/cacheset.h @@ -344,7 +344,7 @@ private: void * const d; }; /*}}}*/ -template class APT_PUBLIC PackageContainer : public PackageContainerInterface {/*{{{*/ +template class PackageContainer : public PackageContainerInterface {/*{{{*/ /** \class APT::PackageContainer Simple wrapper around a container class like std::set to provide a similar @@ -798,7 +798,7 @@ protected: /*{{{*/ /*}}}*/ }; /*}}}*/ -template class APT_PUBLIC VersionContainer : public VersionContainerInterface {/*{{{*/ +template class VersionContainer : public VersionContainerInterface {/*{{{*/ /** \class APT::VersionContainer Simple wrapper around a container class like std::set to provide a similar diff --git a/debian/libapt-pkg7.0.symbols b/debian/libapt-pkg7.0.symbols index c45d7c68f..bdce1f748 100644 --- a/debian/libapt-pkg7.0.symbols +++ b/debian/libapt-pkg7.0.symbols @@ -792,18 +792,6 @@ libapt-pkg.so.7.0 libapt-pkg7.0 #MINVER# (c++)"APT::VersionContainerInterface::FromCommandLine(APT::VersionContainerInterface*, pkgCacheFile&, char const**, APT::CacheSetHelper::VerSelector, APT::CacheSetHelper&)@APTPKG_7.0" 1.1~exp4 (c++)"APT::VersionContainerInterface::FromPackage(APT::VersionContainerInterface*, pkgCacheFile&, pkgCache::PkgIterator const&, APT::CacheSetHelper::VerSelector, APT::CacheSetHelper&)@APTPKG_7.0" 1.1~exp4 (c++)"APT::VersionContainerInterface::FromString(APT::VersionContainerInterface*, pkgCacheFile&, std::__cxx11::basic_string, std::allocator >, APT::CacheSetHelper::VerSelector, APT::CacheSetHelper&, bool)@APTPKG_7.0" 1.1~exp4 - (c++)"typeinfo for APT::PackageContainer, std::allocator > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"typeinfo for APT::PackageContainer > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"typeinfo for APT::VersionContainer > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"typeinfo name for APT::PackageContainer, std::allocator > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"typeinfo name for APT::PackageContainer > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"typeinfo name for APT::VersionContainer > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"vtable for APT::PackageContainer, std::allocator > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"vtable for APT::PackageContainer > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"vtable for APT::VersionContainer > >@APTPKG_7.0" 0.8.16~exp9 - (c++)"typeinfo for APT::VersionContainer > >@APTPKG_7.0" 1.1~exp15 - (c++)"typeinfo name for APT::VersionContainer > >@APTPKG_7.0" 1.1~exp15 - (c++)"vtable for APT::VersionContainer > >@APTPKG_7.0" 1.1~exp15 (c++)"Hashes::GetHashStringList()@APTPKG_7.0" 1.1~exp1 (c++)"Hashes::Hashes()@APTPKG_7.0" 1.1~exp1 (c++)"Hashes::~Hashes()@APTPKG_7.0" 1.1~exp1 @@ -1129,9 +1117,6 @@ libapt-pkg.so.7.0 libapt-pkg7.0 #MINVER# (c++)"pkgPolicy::SetPriority(pkgCache::VerIterator const&, short)@APTPKG_7.0" 1.9.11~ (c++)"pkgDebianIndexFile::Merge(pkgCacheGenerator&, OpProgress*)@APTPKG_7.0" 1.9.11~ (c++)"metaIndex::Merge(pkgCacheGenerator&, OpProgress*) const@APTPKG_7.0" 1.9.11~ - (c++)"typeinfo for APT::PackageContainer > >@APTPKG_7.0" 1.9.11~ - (c++)"typeinfo name for APT::PackageContainer > >@APTPKG_7.0" 1.9.11~ - (c++)"vtable for APT::PackageContainer > >@APTPKG_7.0" 1.9.11~ (c++)"pkgDepCache::CheckConsistency(char const*)@APTPKG_7.0" 2.1.5~ (c++)"APT::StateChanges::clear()@APTPKG_7.0" 1.1~exp15 (c++)"APT::StateChanges::empty() const@APTPKG_7.0" 1.1~exp15 -- cgit v1.2.3-70-g09d2