]>
Commit | Line | Data |
---|---|---|
b2e465d6 AL |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
c0a00c82 | 3 | // $Id: debversion.h,v 1.3 2001/05/03 05:25:04 jgg Exp $ |
b2e465d6 AL |
4 | /* ###################################################################### |
5 | ||
6 | Debian Version - Versioning system for Debian | |
7 | ||
8 | This implements the standard Debian versioning system. | |
9 | ||
10 | ##################################################################### */ | |
11 | /*}}}*/ | |
12 | #ifndef PKGLIB_DEBVERSION_H | |
13 | #define PKGLIB_DEBVERSION_H | |
14 | ||
453b82a3 | 15 | #include <apt-pkg/version.h> |
13500573 | 16 | |
453b82a3 | 17 | #include <string> |
b2e465d6 | 18 | |
b2e465d6 | 19 | class debVersioningSystem : public pkgVersioningSystem |
453b82a3 | 20 | { |
c0a00c82 | 21 | public: |
a02db58f | 22 | |
b2e465d6 | 23 | static int CmpFragment(const char *A, const char *AEnd, const char *B, |
a02db58f DK |
24 | const char *BEnd) APT_PURE; |
25 | ||
b2e465d6 AL |
26 | // Compare versions.. |
27 | virtual int DoCmpVersion(const char *A,const char *Aend, | |
a02db58f DK |
28 | const char *B,const char *Bend) APT_PURE; |
29 | virtual bool CheckDep(const char *PkgVer,int Op,const char *DepVer) APT_PURE; | |
30 | virtual APT_PURE int DoCmpReleaseVer(const char *A,const char *Aend, | |
b2e465d6 AL |
31 | const char *B,const char *Bend) |
32 | { | |
33 | return DoCmpVersion(A,Aend,B,Bend); | |
a02db58f | 34 | } |
8f3ba4e8 | 35 | virtual std::string UpstreamVersion(const char *A); |
b2e465d6 AL |
36 | |
37 | debVersioningSystem(); | |
38 | }; | |
39 | ||
40 | extern debVersioningSystem debVS; | |
41 | ||
b2e465d6 | 42 | #endif |