rpm  4.18.0
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 */
struct rpmver_s * rpmver
Definition: rpmtypes.h:73
rpmver rpmverNew(const char *e, const char *v, const char *r)
Create new rpm version handle from e, v, r components.
int rpmverCmp(rpmver v1, rpmver v2)
Compare two rpm version handles.
rpmver rpmverParse(const char *evr)
Parse rpm version handle from evr string.
const char * rpmverE(rpmver rv)
uint32_t rpmverEVal(rpmver rv)
int rpmvercmp(const char *a, const char *b)
Segmented string compare for version or release strings.
rpmver rpmverFree(rpmver rv)
Free rpm version handle.
const char * rpmverR(rpmver rv)
const char * rpmverV(rpmver rv)
int rpmverOverlap(rpmver v1, rpmsenseFlags f1, rpmver v2, rpmsenseFlags f2)
Determine whether two versioned ranges overlap.
char * rpmverEVR(rpmver rv)
Structure(s) used for dependency tag sets.
rpmFlags rpmsenseFlags
Definition: rpmds.h:57
Typedefs for RPM abstract data types.