rpm  4.5
Files | Typedefs | Functions | Variables
RPMDS Dependency Set API.
Collaboration diagram for RPMDS Dependency Set API.:

Files

file  rpmdpkg.c
 
file  rpmdpkg.h
 Structure(s) and routine(s) used for dpkg EVR parsing and comparison.
 
file  rpmds.c
 
file  rpmds.h
 Structure(s) used for dependency tag sets.
 
file  rpmevr.c
 
file  rpmevr.h
 Structure(s) and routine(s) used for EVR parsing and comparison.
 
file  rpmlib.h
 In Memoriam: Steve Taylor stayl.nosp@m.or@r.nosp@m.edhat.nosp@m..com was here, now he's not.
 
file  rpmns.c
 
file  rpmns.h
 Structure(s) and routine(s) used for classifying and parsing names.
 

Typedefs

typedef struct rpmds_s * rpmds
 Dependency tag sets from a header, so that a header can be discarded early. More...
 
typedef struct rpmPRCO_s * rpmPRCO
 Container for commonly extracted dependency set(s). More...
 

Functions

int dpkgEVRcmp (const char *a, const char *b)
 Segmented string compare. More...
 
int dpkgEVRparse (const char *evrstr, EVR_t evr)
 Split EVR string into epoch, version, and release components. More...
 
int dpkgEVRcompare (const EVR_t a, const EVR_t b)
 Compare EVR containers. More...
 
int rpmEVRcmp (const char *a, const char *b)
 Segmented string compare. More...
 
int rpmEVRparse (const char *evrstr, EVR_t evr)
 Split EVR string into epoch, version, and release components. More...
 
int rpmEVRcompare (const EVR_t a, const EVR_t b)
 Compare EVR containers. More...
 
nsType rpmnsArch (const char *str)
 Is string a known arch suffix? More...
 
nsType rpmnsProbe (const char *str)
 Is string a known probe namespace? More...
 
nsType rpmnsClassify (const char *str)
 Classify a string as a dependency type. More...
 
int rpmnsParse (const char *str, rpmns ns)
 Split NS string into namespace, name and arch components. More...
 

Variables

int(* rpmvercmp )(const char *a, const char *b)
 Segmented string compare vector. More...
 

Detailed Description

Typedef Documentation

typedef struct rpmds_s* rpmds

Dependency tag sets from a header, so that a header can be discarded early.

Definition at line 84 of file rpmlib.h.

typedef struct rpmPRCO_s* rpmPRCO

Container for commonly extracted dependency set(s).

Definition at line 89 of file rpmlib.h.

Function Documentation

int dpkgEVRcmp ( const char *  a,
const char *  b 
)

Segmented string compare.

Parameters
a1st string
b2nd string
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 31 of file rpmdpkg.c.

References dpkgEVRctype(), and xisdigit().

Referenced by dpkgEVRcompare().

int dpkgEVRcompare ( const EVR_t  a,
const EVR_t  b 
)

Compare EVR containers.

Parameters
a1st EVR container
b2nd EVR container
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 64 of file rpmdpkg.c.

References dpkgEVRcmp().

int dpkgEVRparse ( const char *  evrstr,
EVR_t  evr 
)

Split EVR string into epoch, version, and release components.

Parameters
evrstr[epoch:]version[-release] string
Return values
*evrparse results
Returns
0 always

Definition at line 59 of file rpmdpkg.c.

References rpmEVRparse().

int rpmEVRcmp ( const char *  a,
const char *  b 
)

Segmented string compare.

Parameters
a1st string
b2nd string
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 49 of file rpmevr.c.

References _invert_digits_alphas_comparison, MAX, xisdigit(), and xisrpmalpha().

int rpmEVRcompare ( const EVR_t  a,
const EVR_t  b 
)

Compare EVR containers.

Parameters
a1st EVR container
b2nd EVR container
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 145 of file rpmevr.c.

References compare_values().

Referenced by labelCompare().

int rpmEVRparse ( const char *  evrstr,
EVR_t  evr 
)

Split EVR string into epoch, version, and release components.

Parameters
evrstr[epoch:]version[-release] string
Return values
*evrparse results
Returns
0 always

Definition at line 101 of file rpmevr.c.

References xisdigit(), and xstrdup().

Referenced by dpkgEVRparse(), and rpmdsCompare().

nsType rpmnsArch ( const char *  str)

Is string a known arch suffix?

Parameters
strstring
Returns
RPMNS_TYPE_ARCH if known arch, else RPMNS_TYPE_UNKNOWN

Definition at line 47 of file rpmns.c.

References RPMNS_TYPE_ARCH, RPMNS_TYPE_UNKNOWN, and rpmnsArches.

Referenced by rpmnsClassify(), and rpmtsInitIterator().

nsType rpmnsClassify ( const char *  str)

Classify a string as a dependency type.

Parameters
strstring like "bing(bang).boom"
Returns
dependency type

Definition at line 130 of file rpmns.c.

References _rpmns_N_at_A, RPMNS_TYPE_ARCH, RPMNS_TYPE_COMPOUND, RPMNS_TYPE_DSO, RPMNS_TYPE_FUNCTION, RPMNS_TYPE_NAMESPACE, RPMNS_TYPE_PATH, RPMNS_TYPE_STRING, RPMNS_TYPE_UNKNOWN, RPMNS_TYPE_VERSION, rpmnsArch(), rpmnsProbe(), _rpmnsProbes_s::Type, and xisdigit().

Referenced by rpmnsParse().

int rpmnsParse ( const char *  str,
rpmns  ns 
)
nsType rpmnsProbe ( const char *  str)

Is string a known probe namespace?

Parameters
strstring
Returns
nsType if known probe, else RPMNS_TYPE_UNKNOWN

Definition at line 114 of file rpmns.c.

References _rpmnsProbes_s::NS, RPMNS_TYPE_UNKNOWN, rpmnsProbes, and _rpmnsProbes_s::Type.

Referenced by rpmnsClassify().

Variable Documentation

int(* rpmvercmp)(const char *a, const char *b)

Segmented string compare vector.

Parameters
a1st string
b2nd string
Returns
+1 if a is "newer", 0 if equal, -1 if b is "newer"

Definition at line 158 of file rpmevr.c.

Referenced by compare_values(), rpmdsCompare(), and rpmVersionCompare().