version.h 839 B

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