13 #ifndef SATSOLVER_EVR_H
14 #define SATSOLVER_EVR_H
22 #define EVRCMP_COMPARE 0
23 #define EVRCMP_MATCH_RELEASE 1
24 #define EVRCMP_MATCH 2
25 #define EVRCMP_COMPARE_EVONLY 3
27 extern int sat_vercmp(
const char *s1,
const char *q1,
const char *s2,
const char *q2);
31 extern int pool_evrmatch(
const Pool *pool,
Id evrid,
const char *epoch,
const char *version,
const char *release);
34 static inline int vercmp(
const char *s1,
const char *q1,
const char *s2,
const char *q2)
38 static inline int evrcmp_str(
const Pool *pool,
const char *evr1,
const char *evr2,
int mode)
46 static inline int evrmatch(
const Pool *pool,
Id evrid,
const char *epoch,
const char *version,
const char *release)