evr.h 815 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2007, Novell Inc.
  3. *
  4. * This program is licensed under the BSD license, read LICENSE.BSD
  5. * for further information
  6. */
  7. /*
  8. * evr.h
  9. *
  10. */
  11. #ifndef LIBSOLV_EVR_H
  12. #define LIBSOLV_EVR_H
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #include "pooltypes.h"
  17. #define EVRCMP_COMPARE 0
  18. #define EVRCMP_MATCH_RELEASE 1
  19. #define EVRCMP_MATCH 2
  20. #define EVRCMP_COMPARE_EVONLY 3
  21. extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
  22. extern int pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode);
  23. extern int pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode);
  24. extern int pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* LIBSOLV_EVR_H */