20 #ifndef PKGLIB_VERSION_H
21 #define PKGLIB_VERSION_H
23 #include <apt-pkg/strutl.h>
26 #ifndef APT_8_CLEANER_HEADERS
35 static unsigned long GlobalListLen;
41 virtual int DoCmpVersion(
const char *A,
const char *Aend,
42 const char *B,
const char *Bend) = 0;
44 virtual bool CheckDep(
const char *PkgVer,
int Op,
const char *DepVer) = 0;
45 virtual int DoCmpReleaseVer(
const char *A,
const char *Aend,
46 const char *B,
const char *Bend) = 0;
47 virtual std::string UpstreamVersion(
const char *A) = 0;
51 {
return this == &Against;};
54 APT_MKSTRCMP(CmpVersion,DoCmpVersion);
55 APT_MKSTRCMP(CmpReleaseVer,DoCmpReleaseVer);