2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
13 #ifndef SATSOLVER_EVR_H
14 #define SATSOLVER_EVR_H
20 #include "pooltypes.h"
22 #define EVRCMP_COMPARE 0
23 #define EVRCMP_MATCH_RELEASE 1
24 #define EVRCMP_MATCH 2
26 extern int vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
27 extern int evrcmp_str(Pool *pool, const char *evr1, const char *evr2, int mode);
28 extern int evrcmp(Pool *pool, Id evr1id, Id evr2id, int mode);
29 extern int evrmatch(Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
35 #endif /* SATSOLVER_EVR_H */