rpm  4.16.1.2
rpmver.h
Go to the documentation of this file.
1 #ifndef _RPMVER_H
2 #define _RPMVER_H
3 
4 #include <rpm/rpmtypes.h>
5 #include <rpm/rpmds.h> /* sense flags */
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
18 int rpmvercmp(const char * a, const char * b);
19 
26 rpmver rpmverParse(const char *evr);
27 
36 rpmver rpmverNew(const char *e, const char *v, const char *r);
37 
45 
50 uint32_t rpmverEVal(rpmver rv);
51 
56 const char *rpmverE(rpmver rv);
57 
62 const char *rpmverV(rpmver rv);
63 
68 const char *rpmverR(rpmver rv);
69 
74 char *rpmverEVR(rpmver rv);
75 
83 int rpmverCmp(rpmver v1, rpmver v2);
84 
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* _RPMVER_H */
rpmverNew
rpmver rpmverNew(const char *e, const char *v, const char *r)
Create new rpm version handle from e, v, r components.
rpmverEVR
char * rpmverEVR(rpmver rv)
rpmverFree
rpmver rpmverFree(rpmver rv)
Free rpm version handle.
rpmverCmp
int rpmverCmp(rpmver v1, rpmver v2)
Compare two rpm version handles.
rpmverE
const char * rpmverE(rpmver rv)
rpmverParse
rpmver rpmverParse(const char *evr)
Parse rpm version handle from evr string.
rpmver
struct rpmver_s * rpmver
Definition: rpmtypes.h:73
rpmverEVal
uint32_t rpmverEVal(rpmver rv)
rpmverR
const char * rpmverR(rpmver rv)
rpmverOverlap
int rpmverOverlap(rpmver v1, rpmsenseFlags f1, rpmver v2, rpmsenseFlags f2)
Determine whether two versioned ranges overlap.
rpmverV
const char * rpmverV(rpmver rv)
rpmvercmp
int rpmvercmp(const char *a, const char *b)
Segmented string compare for version or release strings.
rpmsenseFlags
rpmFlags rpmsenseFlags
Definition: rpmds.h:56