summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgsystem.h
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:29:06 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:30:03 +0100
commitda7de99f8473ae0ac90c90fad3eee80f5f72889a (patch)
tree795744c3038a9d6e9c7cae5ef69e4095c0d1fc94 /apt-pkg/pkgsystem.h
parentd77c1c7db760ae21d703b8b0f129379e54918bf7 (diff)
pkgsystem: Drop more virtual workaround shenanigans
Diffstat (limited to 'apt-pkg/pkgsystem.h')
-rw-r--r--apt-pkg/pkgsystem.h10
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;
};