summaryrefslogtreecommitdiff
path: root/apt-pkg/cachefilter.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/cachefilter.h')
-rw-r--r--apt-pkg/cachefilter.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/apt-pkg/cachefilter.h b/apt-pkg/cachefilter.h
index 3c6e1559d..ccff6f9a3 100644
--- a/apt-pkg/cachefilter.h
+++ b/apt-pkg/cachefilter.h
@@ -20,7 +20,7 @@ class pkgCacheFile;
namespace APT {
namespace CacheFilter {
-class Matcher {
+class APT_PUBLIC Matcher {
public:
virtual bool operator() (pkgCache::PkgIterator const &/*Pkg*/) = 0;
virtual bool operator() (pkgCache::GrpIterator const &/*Grp*/) = 0;
@@ -28,7 +28,7 @@ public:
virtual ~Matcher();
};
-class PackageMatcher : public Matcher {
+class APT_PUBLIC PackageMatcher : public Matcher {
public:
virtual bool operator() (pkgCache::PkgIterator const &Pkg) APT_OVERRIDE = 0;
virtual bool operator() (pkgCache::VerIterator const &Ver) APT_OVERRIDE { return (*this)(Ver.ParentPkg()); }
@@ -37,21 +37,21 @@ public:
};
// Generica like True, False, NOT, AND, OR /*{{{*/
-class TrueMatcher : public Matcher {
+class APT_PUBLIC TrueMatcher : public Matcher {
public:
virtual bool operator() (pkgCache::PkgIterator const &Pkg) APT_OVERRIDE;
virtual bool operator() (pkgCache::GrpIterator const &Grp) APT_OVERRIDE;
virtual bool operator() (pkgCache::VerIterator const &Ver) APT_OVERRIDE;
};
-class FalseMatcher : public Matcher {
+class APT_PUBLIC FalseMatcher : public Matcher {
public:
virtual bool operator() (pkgCache::PkgIterator const &Pkg) APT_OVERRIDE;
virtual bool operator() (pkgCache::GrpIterator const &Grp) APT_OVERRIDE;
virtual bool operator() (pkgCache::VerIterator const &Ver) APT_OVERRIDE;
};
-class NOTMatcher : public Matcher {
+class APT_PUBLIC NOTMatcher : public Matcher {
Matcher * const matcher;
public:
explicit NOTMatcher(Matcher * const matcher);
@@ -61,7 +61,7 @@ public:
virtual ~NOTMatcher();
};
-class ANDMatcher : public Matcher {
+class APT_PUBLIC ANDMatcher : public Matcher {
std::vector<Matcher *> matchers;
public:
// 5 ought to be enough for everybody… c++11 variadic templates would be nice
@@ -77,7 +77,7 @@ public:
virtual bool operator() (pkgCache::VerIterator const &Ver) APT_OVERRIDE;
virtual ~ANDMatcher();
};
-class ORMatcher : public Matcher {
+class APT_PUBLIC ORMatcher : public Matcher {
std::vector<Matcher *> matchers;
public:
// 5 ought to be enough for everybody… c++11 variadic templates would be nice
@@ -94,7 +94,7 @@ public:
virtual ~ORMatcher();
};
/*}}}*/
-class PackageNameMatchesRegEx : public PackageMatcher { /*{{{*/
+class APT_PUBLIC PackageNameMatchesRegEx : public PackageMatcher { /*{{{*/
regex_t* pattern;
public:
explicit PackageNameMatchesRegEx(std::string const &Pattern);
@@ -103,7 +103,7 @@ public:
virtual ~PackageNameMatchesRegEx();
};
/*}}}*/
-class PackageNameMatchesFnmatch : public PackageMatcher { /*{{{*/
+class APT_PUBLIC PackageNameMatchesFnmatch : public PackageMatcher { /*{{{*/
const std::string Pattern;
public:
explicit PackageNameMatchesFnmatch(std::string const &Pattern);
@@ -112,7 +112,7 @@ public:
virtual ~PackageNameMatchesFnmatch() {};
};
/*}}}*/
-class PackageArchitectureMatchesSpecification : public PackageMatcher { /*{{{*/
+class APT_PUBLIC PackageArchitectureMatchesSpecification : public PackageMatcher { /*{{{*/
/** \class PackageArchitectureMatchesSpecification
\brief matching against architecture specification strings
@@ -138,7 +138,7 @@ public:
virtual ~PackageArchitectureMatchesSpecification();
};
/*}}}*/
-class PackageIsNewInstall : public PackageMatcher { /*{{{*/
+class APT_PUBLIC PackageIsNewInstall : public PackageMatcher { /*{{{*/
pkgCacheFile * const Cache;
public:
explicit PackageIsNewInstall(pkgCacheFile * const Cache);
@@ -148,7 +148,7 @@ public:
/*}}}*/
/// \brief Parse a pattern, return nullptr or pattern
-std::unique_ptr<APT::CacheFilter::Matcher> ParsePattern(APT::StringView pattern, pkgCacheFile *file);
+APT_PUBLIC std::unique_ptr<APT::CacheFilter::Matcher> ParsePattern(APT::StringView pattern, pkgCacheFile *file);
}
}
#endif