36#ifndef PKGLIB_PKGSYSTEM_H
37#define PKGLIB_PKGSYSTEM_H
58 static unsigned long GlobalListLen;
59 static pkgSystem *GetSystem(
const char *Label);
61 const char *
const Label;
66 virtual bool Lock(
OpProgress *
const Progress =
nullptr) = 0;
67 virtual bool UnLock(
bool NoErrors =
false) = 0;
79 virtual bool ArchiveSupported(
const char *Type) = 0;
82 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List) = 0;
84 virtual bool FindIndex(pkgCache::PkgFileIterator File,
115 APT_HIDDEN
void SetVersionMapping(map_id_t
const in, map_id_t
const out);
116 APT_HIDDEN map_id_t GetVersionMapping(map_id_t
const in)
const;
128 virtual bool LockInner(
OpProgress *
const Progress = 0,
int timeOutSec = 0) = 0;
129 virtual bool UnLockInner(
bool NoErrors =
false) = 0;
Definition configuration.h:41
Definition indexfile.h:103
Definition packagemanager.h:49
Definition pkgsystem.cc:30
Definition pkgsystem.h:53
virtual bool IsLocked()=0
checks if the system is currently locked
virtual bool MultiArchSupported() const =0
virtual std::vector< std::string > ArchitecturesSupported() const =0
pkgCache - Structure definitions for the cache file