]> git.saurik.com Git - apt.git/blob - apt-pkg/version.h
Another error message for failed updates
[apt.git] / apt-pkg / version.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: version.h,v 1.5 1999/04/19 06:03:09 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 string pkgBaseVersion(const char *Ver);
29
30 #endif