satsolver  0.17.2
Macros | Functions
evr.h File Reference
#include "pooltypes.h"

Go to the source code of this file.

Macros

#define EVRCMP_COMPARE   0
 
#define EVRCMP_MATCH_RELEASE   1
 
#define EVRCMP_MATCH   2
 
#define EVRCMP_COMPARE_EVONLY   3
 

Functions

int sat_vercmp (const char *s1, const char *q1, const char *s2, const char *q2)
 
int pool_evrcmp_str (const Pool *pool, const char *evr1, const char *evr2, int mode)
 
int pool_evrcmp (const Pool *pool, Id evr1id, Id evr2id, int mode)
 
int pool_evrmatch (const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release)
 
static int vercmp (const char *s1, const char *q1, const char *s2, const char *q2)
 
static int evrcmp_str (const Pool *pool, const char *evr1, const char *evr2, int mode)
 
static int evrcmp (const Pool *pool, Id evr1id, Id evr2id, int mode)
 
static int evrmatch (const Pool *pool, Id evrid, const char *epoch, const char *version, const char *release)
 

Macro Definition Documentation

#define EVRCMP_COMPARE   0
#define EVRCMP_MATCH_RELEASE   1

Definition at line 23 of file evr.h.

#define EVRCMP_MATCH   2

Definition at line 24 of file evr.h.

Referenced by pool_evrcmp_str().

#define EVRCMP_COMPARE_EVONLY   3

Definition at line 25 of file evr.h.

Referenced by jobtodisablelist(), and pool_evrcmp_str().

Function Documentation

int sat_vercmp ( const char *  s1,
const char *  q1,
const char *  s2,
const char *  q2 
)

Definition at line 79 of file evr.c.

Referenced by pool_evrcmp_str(), pool_evrmatch(), and vercmp().

int pool_evrcmp_str ( const Pool pool,
const char *  evr1,
const char *  evr2,
int  mode 
)

Definition at line 143 of file evr.c.

References EVRCMP_COMPARE, EVRCMP_COMPARE_EVONLY, EVRCMP_MATCH, POOL_DEBUG, _Pool::promoteepoch, and sat_vercmp().

Referenced by evrcmp_str().

int pool_evrcmp ( const Pool pool,
Id  evr1id,
Id  evr2id,
int  mode 
)

Definition at line 231 of file evr.c.

References evrcmp_str(), and id2str().

Referenced by evrcmp().

int pool_evrmatch ( const Pool pool,
Id  evrid,
const char *  epoch,
const char *  version,
const char *  release 
)

Definition at line 242 of file evr.c.

References id2str(), and sat_vercmp().

Referenced by evrmatch().

static int vercmp ( const char *  s1,
const char *  q1,
const char *  s2,
const char *  q2 
)
inlinestatic

Definition at line 34 of file evr.h.

References sat_vercmp().

static int evrcmp_str ( const Pool pool,
const char *  evr1,
const char *  evr2,
int  mode 
)
inlinestatic

Definition at line 38 of file evr.h.

References pool_evrcmp_str().

Referenced by pool_evrcmp().

static int evrcmp ( const Pool pool,
Id  evr1id,
Id  evr2id,
int  mode 
)
inlinestatic
static int evrmatch ( const Pool pool,
Id  evrid,
const char *  epoch,
const char *  version,
const char *  release 
)
inlinestatic

Definition at line 46 of file evr.h.

References pool_evrmatch().