satsolver  0.17.2
Classes | Typedefs | Functions
poolid.h File Reference
#include "pooltypes.h"
#include "hash.h"

Go to the source code of this file.

Classes

struct  _Reldep
 

Typedefs

typedef struct _Reldep Reldep
 

Functions

Id pool_str2id (Pool *pool, const char *, int)
 
Id pool_strn2id (Pool *pool, const char *, unsigned int, int)
 
Id pool_rel2id (Pool *pool, Id, Id, int, int)
 
const char * pool_id2str (const Pool *pool, Id)
 
const char * pool_id2rel (const Pool *pool, Id)
 
const char * pool_id2evr (const Pool *pool, Id)
 
const char * pool_dep2str (Pool *pool, Id)
 
void pool_shrink_strings (Pool *pool)
 
void pool_shrink_rels (Pool *pool)
 
void pool_freeidhashes (Pool *pool)
 
static Id str2id (Pool *pool, const char *str, int create)
 
static Id strn2id (Pool *pool, const char *str, unsigned int len, int create)
 
static Id rel2id (Pool *pool, Id name, Id evr, int flags, int create)
 
static const char * id2str (const Pool *pool, Id id)
 
static const char * id2rel (const Pool *pool, Id id)
 
static const char * id2evr (const Pool *pool, Id id)
 
static const char * dep2str (Pool *pool, Id id)
 

Typedef Documentation

typedef struct _Reldep Reldep

Function Documentation

Id pool_str2id ( Pool pool,
const char *  ,
int   
)
Id pool_strn2id ( Pool pool,
const char *  ,
unsigned  int,
int   
)
Id pool_rel2id ( Pool pool,
Id  ,
Id  ,
int  ,
int   
)
const char* pool_id2str ( const Pool pool,
Id   
)

Definition at line 124 of file poolid.c.

References GETRELDEP, ISRELDEP, _Reldep::name, _Pool::ss, _Stringpool::strings, and _Stringpool::stringspace.

Referenced by id2str().

const char* pool_id2rel ( const Pool pool,
Id   
)

Definition at line 158 of file poolid.c.

References _Reldep::flags, GETRELDEP, ISRELDEP, REL_AND, REL_ARCH, REL_FILECONFLICT, REL_NAMESPACE, REL_OR, REL_WITH, and rels.

Referenced by id2rel().

const char* pool_id2evr ( const Pool pool,
Id   
)

Definition at line 191 of file poolid.c.

References _Reldep::evr, GETRELDEP, ISRELDEP, _Pool::ss, _Stringpool::strings, and _Stringpool::stringspace.

Referenced by id2evr().

const char* pool_dep2str ( Pool pool,
Id   
)
void pool_shrink_strings ( Pool pool)

Definition at line 270 of file poolid.c.

References _Pool::ss, and stringpool_shrink().

Referenced by repo_add_solv_flags().

void pool_shrink_rels ( Pool pool)

Definition at line 276 of file poolid.c.

References _Pool::nrels, REL_BLOCK, _Pool::rels, and sat_extend_resize().

Referenced by repo_add_solv_flags().

void pool_freeidhashes ( Pool pool)
static Id str2id ( Pool pool,
const char *  str,
int  create 
)
inlinestatic
static Id strn2id ( Pool pool,
const char *  str,
unsigned int  len,
int  create 
)
inlinestatic

Definition at line 47 of file poolid.h.

References pool_strn2id().

Referenced by pool_setarchpolicy(), and repodata_str2dir().

static Id rel2id ( Pool pool,
Id  name,
Id  evr,
int  flags,
int  create 
)
inlinestatic
static const char* id2str ( const Pool pool,
Id  id 
)
inlinestatic
static const char* id2rel ( const Pool pool,
Id  id 
)
inlinestatic

Definition at line 59 of file poolid.h.

References pool_id2rel().

Referenced by dep2strcpy(), and dep2strlen().

static const char* id2evr ( const Pool pool,
Id  id 
)
inlinestatic

Definition at line 63 of file poolid.h.

References pool_id2evr().

static const char* dep2str ( Pool pool,
Id  id 
)
inlinestatic