Rpm version comparison API.
More...
Rpm version comparison API.
◆ rpmvercmp()
int rpmvercmp |
( |
const char * |
a, |
|
|
const char * |
b |
|
) |
| |
Segmented string compare for version or release strings.
- Parameters
-
- Returns
- +1 if a is "newer", 0 if equal, -1 if b is "newer"
◆ rpmverCmp()
Compare two rpm version handles.
- Parameters
-
v1 | 1st version handle |
v2 | 2nd version handle |
- Returns
- 0 if equal, -1 if v1 smaller, 1 if greater, than v2
◆ rpmverE()
const char* rpmverE |
( |
rpmver |
rv | ) |
|
- Parameters
-
- Returns
- epoch portion
◆ rpmverEVal()
uint32_t rpmverEVal |
( |
rpmver |
rv | ) |
|
- Parameters
-
- Returns
- numerical value of epoch
◆ rpmverEVR()
- Parameters
-
- Returns
- formatted [E:]V[-R] string (malloced)
◆ rpmverFree()
Free rpm version handle.
- Parameters
-
- Returns
- NULL always
◆ rpmverNew()
rpmver rpmverNew |
( |
const char * |
e, |
|
|
const char * |
v, |
|
|
const char * |
r |
|
) |
| |
Create new rpm version handle from e, v, r components.
- Parameters
-
e | epoch (or NULL) |
v | version |
r | release (or NULL) |
- Returns
- rpm version, NULL on invalid
◆ rpmverOverlap()
Determine whether two versioned ranges overlap.
- Parameters
-
v1 | 1st version |
f1 | 1st sense flags |
v2 | 2nd version |
f2 | 2nd sense flags |
- Returns
- 1 if ranges overlap, 0 otherwise
◆ rpmverParse()
rpmver rpmverParse |
( |
const char * |
evr | ) |
|
Parse rpm version handle from evr string.
- Parameters
-
evr | [epoch:]version[-release] string |
- Returns
- rpm version, NULL on invalid evr
◆ rpmverR()
const char* rpmverR |
( |
rpmver |
rv | ) |
|
- Parameters
-
- Returns
- release portion
◆ rpmverV()
const char* rpmverV |
( |
rpmver |
rv | ) |
|
- Parameters
-
- Returns
- version portion