satsolver
0.17.2
|
Go to the source code of this file.
Classes | |
struct | _Repo |
struct | _KeyValue |
struct | _Datamatcher |
struct | _Dataiterator |
struct | _Dataiterator::di_parent |
Macros | |
#define | FOR_REPO_SOLVABLES(r, p, s) |
#define | SEARCH_NEXT_KEY 1 |
#define | SEARCH_NEXT_SOLVABLE 2 |
#define | SEARCH_STOP 3 |
#define | SEARCH_ENTERSUB -1 |
#define | SEARCH_STRINGMASK 15 |
#define | SEARCH_STRING 1 |
#define | SEARCH_STRINGSTART 2 |
#define | SEARCH_STRINGEND 3 |
#define | SEARCH_SUBSTRING 4 |
#define | SEARCH_GLOB 5 |
#define | SEARCH_REGEX 6 |
#define | SEARCH_ERROR 15 |
#define | SEARCH_NOCASE (1<<7) |
#define | SEARCH_NO_STORAGE_SOLVABLE (1<<8) |
#define | SEARCH_SUB (1<<9) |
#define | SEARCH_ARRAYSENTINEL (1<<10) |
#define | SEARCH_DISABLED_REPOS (1<<11) |
#define | SEARCH_COMPLETE_FILELIST (1<<12) |
#define | SEARCH_SKIP_KIND (1<<16) |
#define | SEARCH_FILES (1<<17) |
#define | SEARCH_CHECKSUMS (1<<18) |
#define | SEARCH_THISSOLVID (1<<31) |
#define | REPO_REUSE_REPODATA (1 << 0) |
#define | REPO_NO_INTERNALIZE (1 << 1) |
#define | REPO_LOCALPOOL (1 << 2) |
#define | REPO_USE_LOADING (1 << 3) |
#define | REPO_EXTEND_SOLVABLES (1 << 4) |
#define | DI_SEEK_STAY (1 << 16) |
#define | DI_SEEK_CHILD 1 |
#define | DI_SEEK_PARENT 2 |
#define | DI_SEEK_REWIND 3 |
Typedefs | |
typedef struct _Repo | Repo |
typedef struct _KeyValue | KeyValue |
typedef struct _Datamatcher | Datamatcher |
typedef struct _Dataiterator | Dataiterator |
Functions | |
Repo * | repo_create (Pool *pool, const char *name) |
void | repo_free (Repo *repo, int reuseids) |
void | repo_empty (Repo *repo, int reuseids) |
void | repo_freeallrepos (Pool *pool, int reuseids) |
void | repo_free_solvable_block (Repo *repo, Id start, int count, int reuseids) |
void * | repo_sidedata_create (Repo *repo, size_t size) |
void * | repo_sidedata_extend (Repo *repo, void *b, size_t size, Id p, int count) |
Offset | repo_addid (Repo *repo, Offset olddeps, Id id) |
Offset | repo_addid_dep (Repo *repo, Offset olddeps, Id id, Id marker) |
Offset | repo_reserve_ids (Repo *repo, Offset olddeps, int num) |
Offset | repo_fix_supplements (Repo *repo, Offset provides, Offset supplements, Offset freshens) |
Offset | repo_fix_conflicts (Repo *repo, Offset conflicts) |
static const char * | repo_name (const Repo *repo) |
static Id | repo_add_solvable (Repo *repo) |
static Id | repo_add_solvable_block (Repo *repo, int count) |
static Repo * | pool_id2repo (Pool *pool, Id repoid) |
static int | pool_installable (const Pool *pool, Solvable *s) |
Repodata * | repo_add_repodata (Repo *repo, int flags) |
Repodata * | repo_last_repodata (Repo *repo) |
void | repo_search (Repo *repo, Id p, Id key, const char *match, int flags, int(*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata) |
Id | repo_lookup_type (Repo *repo, Id entry, Id keyname) |
const char * | repo_lookup_str (Repo *repo, Id entry, Id keyname) |
unsigned int | repo_lookup_num (Repo *repo, Id entry, Id keyname, unsigned int notfound) |
Id | repo_lookup_id (Repo *repo, Id entry, Id keyname) |
int | repo_lookup_idarray (Repo *repo, Id entry, Id keyname, Queue *q) |
int | repo_lookup_void (Repo *repo, Id entry, Id keyname) |
const char * | repo_lookup_checksum (Repo *repo, Id entry, Id keyname, Id *typep) |
const unsigned char * | repo_lookup_bin_checksum (Repo *repo, Id entry, Id keyname, Id *typep) |
int | datamatcher_init (Datamatcher *ma, const char *match, int flags) |
void | datamatcher_free (Datamatcher *ma) |
int | datamatcher_match (Datamatcher *ma, const char *str) |
int | dataiterator_init (Dataiterator *di, Pool *pool, Repo *repo, Id p, Id keyname, const char *match, int flags) |
void | dataiterator_init_clone (Dataiterator *di, Dataiterator *from) |
void | dataiterator_set_search (Dataiterator *di, Repo *repo, Id p) |
void | dataiterator_set_keyname (Dataiterator *di, Id keyname) |
int | dataiterator_set_match (Dataiterator *di, const char *match, int flags) |
void | dataiterator_prepend_keyname (Dataiterator *di, Id keyname) |
void | dataiterator_free (Dataiterator *di) |
int | dataiterator_step (Dataiterator *di) |
void | dataiterator_setpos (Dataiterator *di) |
void | dataiterator_setpos_parent (Dataiterator *di) |
int | dataiterator_match (Dataiterator *di, Datamatcher *ma) |
void | dataiterator_skip_attribute (Dataiterator *di) |
void | dataiterator_skip_solvable (Dataiterator *di) |
void | dataiterator_skip_repo (Dataiterator *di) |
void | dataiterator_jump_to_solvid (Dataiterator *di, Id solvid) |
void | dataiterator_jump_to_repo (Dataiterator *di, Repo *repo) |
void | dataiterator_entersub (Dataiterator *di) |
void | dataiterator_clonepos (Dataiterator *di, Dataiterator *from) |
void | dataiterator_seek (Dataiterator *di, int whence) |
void | repo_set_id (Repo *repo, Id p, Id keyname, Id id) |
void | repo_set_num (Repo *repo, Id p, Id keyname, unsigned int num) |
void | repo_set_str (Repo *repo, Id p, Id keyname, const char *str) |
void | repo_set_poolstr (Repo *repo, Id p, Id keyname, const char *str) |
void | repo_add_poolstr_array (Repo *repo, Id p, Id keyname, const char *str) |
void | repo_internalize (Repo *repo) |
void | repo_disable_paging (Repo *repo) |
#define FOR_REPO_SOLVABLES | ( | r, | |
p, | |||
s | |||
) |
Definition at line 108 of file repo.h.
Referenced by pool_calc_duchanges(), pool_calc_installsizechange(), solvable_trivial_installable_repo(), solver_createdupmaps(), solver_solve(), transaction_add_obsoleted(), transaction_calculate(), transaction_check_order(), transaction_create_installedmap(), and transaction_installedresult().
#define SEARCH_NEXT_KEY 1 |
Definition at line 139 of file repo.h.
Referenced by repo_search_md(), and repodata_search().
#define SEARCH_NEXT_SOLVABLE 2 |
Definition at line 140 of file repo.h.
Referenced by repo_search_md().
#define SEARCH_ENTERSUB -1 |
Definition at line 142 of file repo.h.
Referenced by repodata_search().
#define SEARCH_STRINGMASK 15 |
Definition at line 157 of file repo.h.
Referenced by dataiterator_filelistcheck(), dataiterator_step(), datamatcher_free(), datamatcher_init(), and datamatcher_match().
#define SEARCH_STRING 1 |
Definition at line 158 of file repo.h.
Referenced by dataiterator_filelistcheck(), dataiterator_step(), and datamatcher_match().
#define SEARCH_STRINGSTART 2 |
Definition at line 159 of file repo.h.
Referenced by datamatcher_match().
#define SEARCH_STRINGEND 3 |
Definition at line 160 of file repo.h.
Referenced by datamatcher_match().
#define SEARCH_SUBSTRING 4 |
Definition at line 161 of file repo.h.
Referenced by datamatcher_match().
#define SEARCH_GLOB 5 |
Definition at line 162 of file repo.h.
Referenced by dataiterator_filelistcheck(), and datamatcher_match().
#define SEARCH_REGEX 6 |
Definition at line 163 of file repo.h.
Referenced by datamatcher_free(), datamatcher_init(), and datamatcher_match().
#define SEARCH_ERROR 15 |
Definition at line 164 of file repo.h.
Referenced by datamatcher_init().
#define SEARCH_NOCASE (1<<7) |
Definition at line 165 of file repo.h.
Referenced by dataiterator_filelistcheck(), dataiterator_step(), datamatcher_init(), and datamatcher_match().
#define SEARCH_NO_STORAGE_SOLVABLE (1<<8) |
Definition at line 168 of file repo.h.
Referenced by dataiterator_step(), and repo_search_md().
#define SEARCH_SUB (1<<9) |
Definition at line 169 of file repo.h.
Referenced by dataiterator_step(), and repodata_search().
#define SEARCH_ARRAYSENTINEL (1<<10) |
Definition at line 170 of file repo.h.
Referenced by dataiterator_step(), and repodata_search().
#define SEARCH_DISABLED_REPOS (1<<11) |
Definition at line 171 of file repo.h.
Referenced by dataiterator_step(), and repo_search().
#define SEARCH_COMPLETE_FILELIST (1<<12) |
Definition at line 172 of file repo.h.
Referenced by dataiterator_filelistcheck(), and repo_search_md().
#define SEARCH_SKIP_KIND (1<<16) |
Definition at line 175 of file repo.h.
Referenced by repodata_stringify().
#define SEARCH_FILES (1<<17) |
Definition at line 179 of file repo.h.
Referenced by dataiterator_step(), and repodata_stringify().
#define SEARCH_CHECKSUMS (1<<18) |
Definition at line 180 of file repo.h.
Referenced by repodata_stringify().
#define SEARCH_THISSOLVID (1<<31) |
Definition at line 183 of file repo.h.
Referenced by dataiterator_clonepos(), dataiterator_init(), dataiterator_jump_to_repo(), dataiterator_jump_to_solvid(), dataiterator_set_match(), dataiterator_set_search(), and dataiterator_step().
#define REPO_REUSE_REPODATA (1 << 0) |
Definition at line 187 of file repo.h.
Referenced by repo_add_repodata(), and repo_add_solv_flags().
#define REPO_LOCALPOOL (1 << 2) |
Definition at line 189 of file repo.h.
Referenced by repo_add_repodata(), and repo_add_solv_flags().
#define REPO_USE_LOADING (1 << 3) |
Definition at line 190 of file repo.h.
Referenced by repo_add_repodata(), and repo_add_solv_flags().
#define REPO_EXTEND_SOLVABLES (1 << 4) |
Definition at line 191 of file repo.h.
Referenced by repo_add_solv_flags().
#define DI_SEEK_STAY (1 << 16) |
Definition at line 309 of file repo.h.
Referenced by dataiterator_seek().
#define DI_SEEK_CHILD 1 |
Definition at line 310 of file repo.h.
Referenced by dataiterator_seek().
#define DI_SEEK_PARENT 2 |
Definition at line 311 of file repo.h.
Referenced by dataiterator_seek().
#define DI_SEEK_REWIND 3 |
Definition at line 312 of file repo.h.
Referenced by dataiterator_seek().
typedef struct _Datamatcher Datamatcher |
typedef struct _Dataiterator Dataiterator |
Definition at line 39 of file repo.c.
References _Repo::end, _Repo::name, _Pool::nrepos, _Repo::nsolvables, _Pool::nsolvables, _Repo::pool, pool_freewhatprovides(), _Repo::repoid, _Pool::repos, sat_calloc(), sat_realloc2(), and _Repo::start.
void repo_free | ( | Repo * | repo, |
int | reuseids | ||
) |
Definition at line 112 of file repo.c.
References _Pool::installed, _Pool::nrepos, _Repo::pool, repo_empty(), repo_freedata(), _Repo::repoid, and _Pool::repos.
void repo_empty | ( | Repo * | repo, |
int | reuseids | ||
) |
Definition at line 72 of file repo.c.
References _Repo::end, _Repo::idarraydata, _Repo::idarraysize, _Repo::lastoff, _Repo::nrepodata, _Repo::nsolvables, _Pool::nsolvables, _Repo::pool, pool_free_solvable_block(), pool_freewhatprovides(), _Solvable::repo, _Repo::repodata, repodata_freedata(), _Repo::rpmdbid, sat_free(), _Pool::solvables, and _Repo::start.
Referenced by repo_free().
void repo_freeallrepos | ( | Pool * | pool, |
int | reuseids | ||
) |
Definition at line 137 of file repo.c.
References _Pool::nrepos, _Pool::nsolvables, pool_free_solvable_block(), pool_freewhatprovides(), repo_freedata(), _Pool::repos, and sat_free().
Referenced by pool_free().
Definition at line 150 of file repo.c.
References _Repo::end, _Repodata::end, _Repo::nsolvables, _Repo::pool, pool_free_solvable_block(), _Solvable::repo, _Repo::repodata, repodata_shrink(), and _Pool::solvables.
Referenced by repo_add_solv_flags().
void* repo_sidedata_create | ( | Repo * | repo, |
size_t | size | ||
) |
Definition at line 177 of file repo.c.
References _Repo::end, REPO_SIDEDATA_BLOCK, sat_calloc_block(), and _Repo::start.
Referenced by repo_add_solv_flags(), and repo_set_num().
Definition at line 183 of file repo.c.
References _Repo::end, REPO_SIDEDATA_BLOCK, sat_extend(), and _Repo::start.
Referenced by repo_add_solvable(), and repo_add_solvable_block().
Definition at line 210 of file repo.c.
References IDARRAY_BLOCK, _Repo::idarraydata, _Repo::idarraysize, _Repo::lastoff, sat_extend(), and sat_extend_resize().
Referenced by repo_addid_dep().
Definition at line 267 of file repo.c.
References _Repo::idarraydata, and repo_addid().
Referenced by addfileprovides_cb(), pool_add_fileconflicts_deps(), and repo_fix_supplements().
Definition at line 352 of file repo.c.
References IDARRAY_BLOCK, _Repo::idarraydata, _Repo::idarraysize, _Repo::lastoff, sat_extend(), and sat_extend_resize().
Referenced by repo_add_solv_flags().
Definition at line 403 of file repo.c.
References id2str(), _Repo::idarraydata, ISRELDEP, _Repo::pool, rel2id(), REL_AND, REL_NAMESPACE, REL_OR, REL_WITH, repo_addid_dep(), and str2id().
Definition at line 595 of file repo.c.
References id2str(), _Repo::idarraydata, ISRELDEP, _Repo::pool, rel2id(), REL_NAMESPACE, and str2id().
|
inlinestatic |
Definition at line 61 of file repo.h.
References _Repo::name.
Definition at line 66 of file repo.h.
References _Repo::end, _Repo::nsolvables, _Repo::pool, pool_add_solvable(), _Solvable::repo, repo_sidedata_extend(), _Repo::rpmdbid, _Pool::solvables, and _Repo::start.
Definition at line 84 of file repo.h.
References _Repo::end, _Repo::nsolvables, _Repo::pool, pool_add_solvable_block(), _Solvable::repo, repo_sidedata_extend(), _Repo::rpmdbid, _Pool::solvables, and _Repo::start.
Referenced by repo_add_solv_flags().
Definition at line 115 of file repo.h.
References _Pool::repos.
Referenced by solver_createdupmaps().
Definition at line 120 of file repo.h.
References _Solvable::arch, _Pool::considered, _Repo::disabled, _Pool::id2arch, _Pool::lastarch, MAPTST, _Solvable::repo, and _Pool::solvables.
Referenced by findrecommendedsuggested(), policy_create_obsolete_index(), pool_createwhatprovides(), solver_addrpmrulesforsolvable(), solver_addrpmrulesforweak(), solver_run_sat(), and solver_solve().
Definition at line 1098 of file repo.c.
References _Repo::nrepodata, REPO_LOCALPOOL, REPO_REUSE_REPODATA, REPO_USE_LOADING, _Repo::repodata, repodata_create(), repodata_empty(), REPODATA_LOADING, REPODATA_STUB, and _Repodata::state.
Referenced by repo_add_solv_flags(), repo_last_repodata(), and repodata_create_stubs().
Definition at line 1125 of file repo.c.
References _Repo::nrepodata, repo_add_repodata(), _Repo::repodata, REPODATA_STUB, and _Repodata::state.
Referenced by repo_add_poolstr_array(), repo_set_id(), repo_set_num(), repo_set_poolstr(), and repo_set_str().
void repo_search | ( | Repo * | repo, |
Id | p, | ||
Id | key, | ||
const char * | match, | ||
int | flags, | ||
int(*)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv) | callback, | ||
void * | cbdata | ||
) |
Definition at line 842 of file repo.c.
References matchdata::callback, matchdata::callback_data, datamatcher_free(), datamatcher_init(), _Repo::disabled, matchdata::flags, matchdata::matcher, _Repo::pool, matchdata::pool, repo_search_md(), and SEARCH_DISABLED_REPOS.
Referenced by pool_calc_duchanges(), and pool_search().
Definition at line 1076 of file repo.c.
References _Repodata::end, _Repo::repodata, repodata_lookup_type(), repodata_precheck_keyname(), and SOLVID_META.
Referenced by solvable_lookup_bool().
Definition at line 861 of file repo.c.
References _Solvable::arch, _Repodata::end, _Solvable::evr, id2str(), _Solvable::name, _Repo::pool, matchdata::pool, _Repo::repodata, repodata_lookup_str(), repodata_lookup_type(), repodata_precheck_keyname(), _Pool::solvables, SOLVID_META, and _Solvable::vendor.
Referenced by solvable_lookup_str().
Definition at line 899 of file repo.c.
References _Repodata::end, _Repo::repodata, repodata_lookup_num(), repodata_lookup_type(), repodata_precheck_keyname(), _Repo::rpmdbid, SOLVID_META, and _Repo::start.
Referenced by solvable_lookup_bool(), and solvable_lookup_num().
Definition at line 929 of file repo.c.
References _Solvable::arch, _Repodata::end, _Solvable::evr, _Repodata::localpool, _Solvable::name, _Repo::pool, _Repo::repodata, repodata_globalize_id(), repodata_lookup_id(), repodata_lookup_type(), repodata_precheck_keyname(), _Pool::solvables, SOLVID_META, and _Solvable::vendor.
Referenced by solvable_lookup_id().
Definition at line 977 of file repo.c.
References _Solvable::conflicts, _Queue::count, _Queue::elements, _Repodata::end, _Solvable::enhances, _Repodata::localpool, lookup_idarray_solvable(), _Solvable::obsoletes, _Repo::pool, _Solvable::provides, queue_empty(), _Solvable::recommends, _Repo::repodata, repodata_globalize_id(), repodata_lookup_idarray(), repodata_lookup_type(), repodata_precheck_keyname(), _Solvable::requires, _Pool::solvables, SOLVID_META, _Solvable::suggests, and _Solvable::supplements.
Referenced by solvable_lookup_idarray().
Definition at line 1056 of file repo.c.
References _Repodata::end, _Repo::repodata, repodata_lookup_type(), repodata_precheck_keyname(), and SOLVID_META.
Referenced by solvable_lookup_void().
Definition at line 1049 of file repo.c.
References _Repo::pool, pool_bin2hex(), repo_lookup_bin_checksum(), and sat_chksum_len().
Definition at line 1026 of file repo.c.
References _Repodata::end, _Repo::repodata, repodata_lookup_bin_checksum(), repodata_lookup_type(), repodata_precheck_keyname(), and SOLVID_META.
Referenced by repo_lookup_checksum(), and solvable_lookup_bin_checksum().
int datamatcher_init | ( | Datamatcher * | ma, |
const char * | match, | ||
int | flags | ||
) |
Definition at line 972 of file repodata.c.
References _Datamatcher::error, _Datamatcher::flags, _Datamatcher::match, _Datamatcher::matchdata, sat_calloc(), sat_free(), SEARCH_ERROR, SEARCH_NOCASE, SEARCH_REGEX, and SEARCH_STRINGMASK.
Referenced by dataiterator_init(), dataiterator_init_clone(), dataiterator_set_match(), and repo_search().
void datamatcher_free | ( | Datamatcher * | ma) |
Definition at line 992 of file repodata.c.
References _Datamatcher::flags, _Datamatcher::matchdata, sat_free(), SEARCH_REGEX, and SEARCH_STRINGMASK.
Referenced by dataiterator_free(), dataiterator_set_match(), and repo_search().
int datamatcher_match | ( | Datamatcher * | ma, |
const char * | str | ||
) |
Definition at line 1002 of file repodata.c.
References _Datamatcher::flags, _Datamatcher::match, _Datamatcher::matchdata, SEARCH_GLOB, SEARCH_NOCASE, SEARCH_REGEX, SEARCH_STRING, SEARCH_STRINGEND, SEARCH_STRINGMASK, SEARCH_STRINGSTART, and SEARCH_SUBSTRING.
Referenced by dataiterator_match(), dataiterator_step(), and repo_matchvalue().
int dataiterator_init | ( | Dataiterator * | di, |
Pool * | pool, | ||
Repo * | repo, | ||
Id | p, | ||
Id | keyname, | ||
const char * | match, | ||
int | flags | ||
) |
Definition at line 1115 of file repodata.c.
References dataiterator_set_search(), datamatcher_init(), di_bye, _Dataiterator::flags, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::matcher, _Repo::pool, _Dataiterator::pool, SEARCH_THISSOLVID, and _Dataiterator::state.
Referenced by repodata_create_stubs().
void dataiterator_init_clone | ( | Dataiterator * | di, |
Dataiterator * | from | ||
) |
Definition at line 1141 of file repodata.c.
References datamatcher_init(), _Datamatcher::flags, _Dataiterator::kv, _Dataiterator::di_parent::kv, _Datamatcher::match, _Dataiterator::matcher, _Dataiterator::nparents, _KeyValue::parent, and _Dataiterator::parents.
void dataiterator_set_search | ( | Dataiterator * | di, |
Repo * | repo, | ||
Id | p | ||
) |
Definition at line 1176 of file repodata.c.
References dataiterator_jump_to_solvid(), di_bye, di_enterrepo, _Dataiterator::flags, _Dataiterator::nparents, _Pool::nrepos, _Dataiterator::pool, _Dataiterator::repo, _Dataiterator::repodataid, _Dataiterator::repoid, _Pool::repos, _Dataiterator::rootlevel, SEARCH_THISSOLVID, and _Dataiterator::state.
Referenced by dataiterator_init().
void dataiterator_set_keyname | ( | Dataiterator * | di, |
Id | keyname | ||
) |
Definition at line 1200 of file repodata.c.
References _Dataiterator::keyname, _Dataiterator::keynames, and _Dataiterator::nkeynames.
int dataiterator_set_match | ( | Dataiterator * | di, |
const char * | match, | ||
int | flags | ||
) |
Definition at line 1158 of file repodata.c.
References datamatcher_free(), datamatcher_init(), di_bye, _Dataiterator::flags, _Dataiterator::matcher, SEARCH_THISSOLVID, and _Dataiterator::state.
void dataiterator_prepend_keyname | ( | Dataiterator * | di, |
Id | keyname | ||
) |
Definition at line 1208 of file repodata.c.
References di_bye, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::nkeynames, and _Dataiterator::state.
void dataiterator_free | ( | Dataiterator * | di) |
Definition at line 1224 of file repodata.c.
References datamatcher_free(), _Datamatcher::match, and _Dataiterator::matcher.
Referenced by repodata_create_stubs().
int dataiterator_step | ( | Dataiterator * | di) |
Definition at line 1271 of file repodata.c.
References _Dataiterator::data, data_fetch(), data_read_id(), data_skip_schema(), dataiterator_filelistcheck(), dataiterator_find_keyname(), datamatcher_match(), _Dataiterator::ddp, di_bye, di_enterarray, di_enterkey, di_enterrepo, di_enterrepodata, di_enterschema, di_entersolvable, di_entersolvablekey, di_entersub, di_leavesub, di_nextarrayelement, di_nextattr, di_nextkey, di_nextrepo, di_nextrepodata, di_nextsolvable, di_nextsolvableattr, di_nextsolvablekey, _Repo::disabled, _Dataiterator::dp, _Dataiterator::di_parent::dp, _Repo::end, _KeyValue::entry, _KeyValue::eof, _Datamatcher::flags, _Dataiterator::flags, get_data(), _KeyValue::id, _Dataiterator::idp, _Dataiterator::key, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::keyp, _Dataiterator::di_parent::keyp, _Repodata::keys, _Dataiterator::kv, _Dataiterator::di_parent::kv, _Datamatcher::match, _Dataiterator::matcher, maybe_load_repodata(), _Repokey::name, _Dataiterator::nkeynames, _Dataiterator::nparents, _Repo::nrepodata, _Pool::nrepos, _KeyValue::num, _KeyValue::parent, _Dataiterator::parents, _Dataiterator::pool, _Pool::pos, _Solvable::repo, _Dataiterator::repo, _Repo::repodata, repodata_stringify(), _Dataiterator::repodataid, _Dataiterator::repoid, _Pool::repos, _Dataiterator::rootlevel, _Repodata::schemadata, _Repodata::schemata, SEARCH_ARRAYSENTINEL, SEARCH_DISABLED_REPOS, SEARCH_FILES, SEARCH_NO_STORAGE_SOLVABLE, SEARCH_NOCASE, SEARCH_STRING, SEARCH_STRINGMASK, SEARCH_SUB, SEARCH_THISSOLVID, solvabledata_fetch(), _Pool::solvables, _Datapos::solvid, _Dataiterator::solvid, solvid2data(), SOLVID_POS, _Repo::start, _Dataiterator::state, _KeyValue::str, and _Repokey::type.
Referenced by repodata_create_stubs().
void dataiterator_setpos | ( | Dataiterator * | di) |
Definition at line 1530 of file repodata.c.
References _Dataiterator::data, _Datapos::dp, _KeyValue::eof, _KeyValue::id, _Repodata::incoredata, _Dataiterator::kv, _Dataiterator::pool, pool_clear_pos(), _Pool::pos, _Datapos::repo, _Dataiterator::repo, _Repo::repodata, _Datapos::repodataid, _Datapos::schema, _Datapos::solvid, _Dataiterator::solvid, and _KeyValue::str.
void dataiterator_setpos_parent | ( | Dataiterator * | di) |
Definition at line 1545 of file repodata.c.
References _Dataiterator::data, _Datapos::dp, _KeyValue::eof, _KeyValue::id, _Repodata::incoredata, _Dataiterator::kv, _KeyValue::parent, _Dataiterator::pool, pool_clear_pos(), _Pool::pos, _Datapos::repo, _Dataiterator::repo, _Repo::repodata, _Datapos::repodataid, _Datapos::schema, _Datapos::solvid, _Dataiterator::solvid, and _KeyValue::str.
int dataiterator_match | ( | Dataiterator * | di, |
Datamatcher * | ma | ||
) |
Definition at line 1724 of file repodata.c.
References _Dataiterator::data, datamatcher_match(), _Dataiterator::flags, _Dataiterator::key, _Dataiterator::kv, _Dataiterator::pool, repodata_stringify(), and _KeyValue::str.
void dataiterator_skip_attribute | ( | Dataiterator * | di) |
Definition at line 1636 of file repodata.c.
References di_nextkey, di_nextsolvableattr, di_nextsolvablekey, and _Dataiterator::state.
void dataiterator_skip_solvable | ( | Dataiterator * | di) |
Definition at line 1645 of file repodata.c.
References di_nextsolvable, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::rootlevel, and _Dataiterator::state.
void dataiterator_skip_repo | ( | Dataiterator * | di) |
Definition at line 1655 of file repodata.c.
References di_nextrepo, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::rootlevel, and _Dataiterator::state.
void dataiterator_jump_to_solvid | ( | Dataiterator * | di, |
Id | solvid | ||
) |
Definition at line 1665 of file repodata.c.
References _Dataiterator::data, di_bye, di_enterrepo, _Dataiterator::flags, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::kv, _Dataiterator::nparents, _Pool::nrepos, _KeyValue::parent, _Dataiterator::pool, _Pool::pos, _Solvable::repo, _Datapos::repo, _Dataiterator::repo, _Repo::repodata, _Datapos::repodataid, _Dataiterator::repodataid, _Dataiterator::repoid, _Pool::repos, _Dataiterator::rootlevel, SEARCH_THISSOLVID, _Pool::solvables, _Dataiterator::solvid, SOLVID_POS, and _Dataiterator::state.
Referenced by dataiterator_set_search().
void dataiterator_jump_to_repo | ( | Dataiterator * | di, |
Repo * | repo | ||
) |
Definition at line 1710 of file repodata.c.
References di_enterrepo, _Dataiterator::flags, _Dataiterator::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::repo, _Dataiterator::repodataid, _Dataiterator::repoid, _Dataiterator::rootlevel, SEARCH_THISSOLVID, _Dataiterator::solvid, and _Dataiterator::state.
void dataiterator_entersub | ( | Dataiterator * | di) |
Definition at line 1523 of file repodata.c.
References di_entersub, di_nextarrayelement, and _Dataiterator::state.
Referenced by repodata_create_stubs().
void dataiterator_clonepos | ( | Dataiterator * | di, |
Dataiterator * | from | ||
) |
Definition at line 1561 of file repodata.c.
References _Dataiterator::data, _Dataiterator::ddp, _Dataiterator::dp, _Dataiterator::flags, _Dataiterator::idp, _Dataiterator::key, _Dataiterator::keyp, _Dataiterator::kv, _Dataiterator::di_parent::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::parents, _Dataiterator::repo, _Dataiterator::repodataid, _Dataiterator::repoid, _Dataiterator::rootlevel, SEARCH_THISSOLVID, _Dataiterator::solvid, and _Dataiterator::state.
void dataiterator_seek | ( | Dataiterator * | di, |
int | whence | ||
) |
Definition at line 1590 of file repodata.c.
References _Dataiterator::data, _Dataiterator::ddp, di_bye, di_enterschema, di_entersub, di_nextarrayelement, DI_SEEK_CHILD, DI_SEEK_PARENT, DI_SEEK_REWIND, DI_SEEK_STAY, _Dataiterator::dp, _Dataiterator::di_parent::dp, _KeyValue::id, _Dataiterator::key, _Dataiterator::keyname, _Dataiterator::keynames, _Dataiterator::keyp, _Dataiterator::di_parent::keyp, _Repodata::keys, _Dataiterator::kv, _Dataiterator::di_parent::kv, _Dataiterator::nparents, _KeyValue::parent, _Dataiterator::parents, _Dataiterator::rootlevel, _Repodata::schemadata, _Repodata::schemata, _Dataiterator::state, and _KeyValue::str.
Definition at line 1135 of file repo.c.
References _Solvable::arch, _Solvable::evr, _Repodata::localpool, _Solvable::name, _Repo::pool, repo_last_repodata(), repodata_localize_id(), repodata_set_id(), _Pool::solvables, and _Solvable::vendor.
Referenced by repo_set_poolstr(), and repo_set_str().
Definition at line 1163 of file repo.c.
References repo_last_repodata(), repo_sidedata_create(), repodata_set_num(), and _Repo::rpmdbid.
Definition at line 1181 of file repo.c.
References _Repo::pool, repo_last_repodata(), repo_set_id(), repodata_set_str(), and str2id().
Definition at line 1201 of file repo.c.
References _Repo::pool, repo_last_repodata(), repo_set_id(), repodata_set_poolstr(), and str2id().
Definition at line 1221 of file repo.c.
References repo_last_repodata(), and repodata_add_poolstr_array().
void repo_internalize | ( | Repo * | repo) |
Definition at line 1228 of file repo.c.
References _Repodata::attrs, _Repo::repodata, repodata_internalize(), and _Repodata::xattrs.
void repo_disable_paging | ( | Repo * | repo) |
Definition at line 1239 of file repo.c.
References _Repo::repodata, and repodata_disable_paging().