summaryrefslogtreecommitdiff
path: root/src/evr.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2007-12-10 14:58:44 +0000
committerMichael Schroeder <mls@suse.de>2007-12-10 14:58:44 +0000
commitc9b149fcab3c154479acbcb3d356a3d976211650 (patch)
tree76c15ae810f1834a931b92908196b40f23226ab4 /src/evr.h
parentd531ff2799ea9cbd4fa2817988054cb0e8a66f18 (diff)
downloadlibsolv-c9b149fcab3c154479acbcb3d356a3d976211650.tar.gz
libsolv-c9b149fcab3c154479acbcb3d356a3d976211650.tar.bz2
libsolv-c9b149fcab3c154479acbcb3d356a3d976211650.zip
- add evrcmp mode parameter
Diffstat (limited to 'src/evr.h')
-rw-r--r--src/evr.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/evr.h b/src/evr.h
index 5fe0c9d..7606608 100644
--- a/src/evr.h
+++ b/src/evr.h
@@ -19,8 +19,12 @@ extern "C" {
#include "pooltypes.h"
-extern int vercmp( const char *s1, const char *q1, const char *s2, const char *q2 );
-extern int evrcmp( Pool *pool, Id evr1id, Id evr2id );
+#define EVRCMP_COMPARE 0
+#define EVRCMP_MATCH_RELEASE 1
+#define EVRCMP_MATCH 2
+
+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);
#ifdef __cplusplus
}