Imported Upstream version 0.6.33
[platform/upstream/libsolv.git] / src / evr.h
index bf80358..d18cc52 100644 (file)
--- a/src/evr.h
+++ b/src/evr.h
@@ -7,11 +7,11 @@
 
 /*
  * evr.h
- * 
+ *
  */
 
-#ifndef SATSOLVER_EVR_H
-#define SATSOLVER_EVR_H
+#ifndef LIBSOLV_EVR_H
+#define LIBSOLV_EVR_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -19,16 +19,19 @@ extern "C" {
 
 #include "pooltypes.h"
 
-#define EVRCMP_COMPARE                  0
-#define EVRCMP_MATCH_RELEASE            1
-#define EVRCMP_MATCH                    2
+#define EVRCMP_COMPARE                 0
+#define EVRCMP_MATCH_RELEASE           1
+#define EVRCMP_MATCH                   2
+#define EVRCMP_COMPARE_EVONLY          3
+
+extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
 
-extern int vercmp(const char *s1, const char *q1, const char *s2, const char *q2);
-extern int evrcmp(Pool *pool, Id evr1id, Id evr2id, int mode);
-extern int evrmatch(Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
+extern int pool_evrcmp_str(const Pool *pool, const char *evr1, const char *evr2, int mode);
+extern int pool_evrcmp(const Pool *pool, Id evr1id, Id evr2id, int mode);
+extern int pool_evrmatch(const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* SATSOLVER_EVR_H */
+#endif /* LIBSOLV_EVR_H */