]>
Commit | Line | Data |
---|---|---|
578bfd0a AL |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
6fc33863 | 3 | // $Id: version.h,v 1.4 1998/07/19 21:24:19 jgg Exp $ |
578bfd0a AL |
4 | /* ###################################################################### |
5 | ||
6fc33863 | 6 | Version - Version comparison routines |
578bfd0a | 7 | |
6fc33863 AL |
8 | These routines provide some means to compare versions and check |
9 | dependencies. | |
578bfd0a AL |
10 | |
11 | ##################################################################### */ | |
12 | /*}}}*/ | |
13 | // Header section: pkglib | |
14 | #ifndef PKGLIB_VERSION_H | |
15 | #define PKGLIB_VERSION_H | |
16 | ||
6c139d6e | 17 | #ifdef __GNUG__ |
094a497d | 18 | #pragma interface "apt-pkg/version.h" |
6c139d6e AL |
19 | #endif |
20 | ||
578bfd0a AL |
21 | #include <string> |
22 | ||
578bfd0a AL |
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 |