Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

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 <staylor@redhat.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 rpmds_s * rpmds
 Dependency tag sets from a header, so that a header can be discarded early.
typedef rpmPRCO_s * rpmPRCO
 Container for commonly extracted dependency set(s).

Functions

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

Variables

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

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:
a 1st string
b 2nd 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:
a 1st EVR container
b 2nd 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:
*evr parse 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:
a 1st string
b 2nd 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:
a 1st EVR container
b 2nd 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:
*evr parse 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:
str string
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:
str string 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
 

Split NS string into namespace, name and arch components.

Parameters:
str string like "bing(bang).boom"
Return values:
*ns parse results
Returns:
0 always

Definition at line 164 of file rpmns.c.

References _rpmns_N_at_A, rpmExpand(), RPMNS_TYPE_ACCESS, RPMNS_TYPE_ARCH, RPMNS_TYPE_COMPOUND, RPMNS_TYPE_CPUINFO, RPMNS_TYPE_DIGEST, RPMNS_TYPE_DISKSPACE, RPMNS_TYPE_DSO, RPMNS_TYPE_ENVVAR, RPMNS_TYPE_FUNCTION, RPMNS_TYPE_GETCONF, RPMNS_TYPE_GNUPG, RPMNS_TYPE_GROUP, RPMNS_TYPE_MACRO, RPMNS_TYPE_MOUNTED, RPMNS_TYPE_NAMESPACE, RPMNS_TYPE_PATH, RPMNS_TYPE_RPMLIB, RPMNS_TYPE_RUNNING, RPMNS_TYPE_SONAME, RPMNS_TYPE_STRING, RPMNS_TYPE_TAG, RPMNS_TYPE_UNAME, RPMNS_TYPE_UNKNOWN, RPMNS_TYPE_USER, RPMNS_TYPE_VERSION, and rpmnsClassify().

Referenced by rpmdsNewN().

nsType rpmnsProbe const char *  str  ) 
 

Is string a known probe namespace?

Parameters:
str string
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:
a 1st string
b 2nd 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().


Generated on Sun Nov 24 23:32:20 2013 for rpm by  doxygen 1.4.4