diff options
author | Julian Andres Klode <jak@debian.org> | 2020-02-26 14:51:05 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2020-02-26 14:51:05 +0000 |
commit | a096b580694cb36f29cdbce8f1db797a08e36709 (patch) | |
tree | 8a1bf6106868761042c80e04fdeff1077779ac18 /apt-pkg/pkgsystem.h | |
parent | b31040e9c1441a2a7296ce3ff12f5052fc522366 (diff) | |
parent | da01dabb86396a1391f081fa54a806e2d7b62133 (diff) |
Merge branch 'pu/cleanups' into 'master'
Cleanup ABI - make stuff virtual, etc
See merge request apt-team/apt!106
Diffstat (limited to 'apt-pkg/pkgsystem.h')
-rw-r--r-- | apt-pkg/pkgsystem.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apt-pkg/pkgsystem.h b/apt-pkg/pkgsystem.h index 051b11ac2..1ccdcd1fb 100644 --- a/apt-pkg/pkgsystem.h +++ b/apt-pkg/pkgsystem.h @@ -100,7 +100,7 @@ class pkgSystem * * @return \b true if the system supports MultiArch, \b false if not. */ - bool MultiArchSupported() const; + virtual bool MultiArchSupported() const = 0; /** architectures supported by this system * * A MultiArch capable system might be configured to use @@ -109,7 +109,7 @@ class pkgSystem * @return a list of all architectures (native + foreign) configured * for on this system (aka: which can be installed without force) */ - std::vector<std::string> ArchitecturesSupported() const; + virtual std::vector<std::string> ArchitecturesSupported() const = 0; APT_HIDDEN void SetVersionMapping(map_id_t const in, map_id_t const out); APT_HIDDEN map_id_t GetVersionMapping(map_id_t const in) const; @@ -124,10 +124,10 @@ class pkgSystem * lock without releasing the overall outer lock, so that dpkg can run * correctly but no other APT instance can acquire the system lock. */ - bool LockInner(); - bool UnLockInner(bool NoErrors = false); + virtual bool LockInner() = 0; + virtual bool UnLockInner(bool NoErrors = false) = 0; /// checks if the system is currently locked - bool IsLocked(); + virtual bool IsLocked() = 0; private: pkgSystemPrivate * const d; }; |