]>
Commit | Line | Data |
---|---|---|
1 | // -*- mode: cpp; mode: fold -*- | |
2 | // Description /*{{{*/ | |
3 | // $Id: version.h,v 1.4 1998/07/19 21:24:19 jgg Exp $ | |
4 | /* ###################################################################### | |
5 | ||
6 | Version - Version comparison routines | |
7 | ||
8 | These routines provide some means to compare versions and check | |
9 | dependencies. | |
10 | ||
11 | ##################################################################### */ | |
12 | /*}}}*/ | |
13 | // Header section: pkglib | |
14 | #ifndef PKGLIB_VERSION_H | |
15 | #define PKGLIB_VERSION_H | |
16 | ||
17 | #ifdef __GNUG__ | |
18 | #pragma interface "apt-pkg/version.h" | |
19 | #endif | |
20 | ||
21 | #include <string> | |
22 | ||
23 | int pkgVersionCompare(const char *A, const char *B); | |
24 | int pkgVersionCompare(const char *A, const char *AEnd, const char *B, | |
25 | const char *BEnd); | |
26 | int pkgVersionCompare(string A,string B); | |
27 | bool pkgCheckDep(const char *DepVer,const char *PkgVer,int Op); | |
28 | ||
29 | #endif |