rpm  5.4.15
Functions | Variables
rpmdpkg.h File Reference

Structure(s) and routine(s) used for dpkg EVR parsing and comparison. More...

#include "rpmevr.h"
Include dependency graph for rpmdpkg.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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...
 

Variables

int _rpmdpkg_debug
 

Detailed Description

Structure(s) and routine(s) used for dpkg EVR parsing and comparison.

Definition in file rpmdpkg.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 33 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 66 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 61 of file rpmdpkg.c.

References rpmEVRparse().

Variable Documentation

int _rpmdpkg_debug

Definition at line 17 of file rpmdpkg.c.