X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fevr.h;h=d18cc52a68a30f749ba1ac9acc4b8d5396eae3a8;hb=f4f0205fb83dc20d8091827942a408843f78f26d;hp=d260eef6af0225d6404fc68eab7594af1224c20f;hpb=61959ce64d745d8663edfabbcfb74c4b90e5c107;p=platform%2Fupstream%2Flibsolv.git diff --git a/src/evr.h b/src/evr.h index d260eef..d18cc52 100644 --- a/src/evr.h +++ b/src/evr.h @@ -1,10 +1,17 @@ /* + * Copyright (c) 2007, Novell Inc. + * + * This program is licensed under the BSD license, read LICENSE.BSD + * for further information + */ + +/* * evr.h - * + * */ -#ifndef EVR_H -#define EVR_H +#ifndef LIBSOLV_EVR_H +#define LIBSOLV_EVR_H #ifdef __cplusplus extern "C" { @@ -12,11 +19,19 @@ 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 +#define EVRCMP_COMPARE_EVONLY 3 + +extern int solv_vercmp(const char *s1, const char *q1, const char *s2, const char *q2); + +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 /* EVR_H */ +#endif /* LIBSOLV_EVR_H */