home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 February
/
PCWorld_2000-02_cd.bin
/
live
/
usr
/
include
/
apt-pkg
/
version.h
< prev
Wrap
C/C++ Source or Header
|
1999-06-21
|
879b
|
31 lines
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// $Id: version.h,v 1.5 1999/04/19 06:03:09 jgg Exp $
/* ######################################################################
Version - Version comparison routines
These routines provide some means to compare versions and check
dependencies.
##################################################################### */
/*}}}*/
// Header section: pkglib
#ifndef PKGLIB_VERSION_H
#define PKGLIB_VERSION_H
#ifdef __GNUG__
#pragma interface "apt-pkg/version.h"
#endif
#include <string>
int pkgVersionCompare(const char *A, const char *B);
int pkgVersionCompare(const char *A, const char *AEnd, const char *B,
const char *BEnd);
int pkgVersionCompare(string A,string B);
bool pkgCheckDep(const char *DepVer,const char *PkgVer,int Op);
string pkgBaseVersion(const char *Ver);
#endif