summaryrefslogtreecommitdiff
path: root/src/evr.h
blob: d18cc52a68a30f749ba1ac9acc4b8d5396eae3a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (c) 2007, Novell Inc.
 *
 * This program is licensed under the BSD license, read LICENSE.BSD
 * for further information
 */

/*
 * evr.h
 *
 */

#ifndef LIBSOLV_EVR_H
#define LIBSOLV_EVR_H

#ifdef __cplusplus
extern "C" {
#endif

#include "pooltypes.h"

#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 /* LIBSOLV_EVR_H */