diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:34 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2019-09-10 15:38:34 +0900 |
commit | 2491213c77850ed26991b572809a5ca4a61fa89b (patch) | |
tree | cd2e4928ad52795bc4a318a0721f487c282a33be /src/repo.h | |
parent | 0e46e80434781d1acbc4f5716827bf8688450a30 (diff) | |
download | libsolv-2491213c77850ed26991b572809a5ca4a61fa89b.tar.gz libsolv-2491213c77850ed26991b572809a5ca4a61fa89b.tar.bz2 libsolv-2491213c77850ed26991b572809a5ca4a61fa89b.zip |
Imported Upstream version 0.7.0upstream/0.7.0
Diffstat (limited to 'src/repo.h')
-rw-r--r-- | src/repo.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -24,7 +24,7 @@ extern "C" { #endif -typedef struct _Repo { +typedef struct s_Repo { const char *name; /* name pointer */ Id repoid; /* our id */ void *appdata; /* application private pointer */ @@ -146,6 +146,11 @@ 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); +/* returns the last repodata that contains the key */ +Repodata *repo_lookup_repodata(Repo *repo, Id entry, Id keyname); +Repodata *repo_lookup_repodata_opt(Repo *repo, Id entry, Id keyname); +Repodata *repo_lookup_filelist_repodata(Repo *repo, Id entry, Datamatcher *matcher); + /* returns the string value of the attribute, or NULL if not found */ Id repo_lookup_type(Repo *repo, Id entry, Id keyname); const char *repo_lookup_str(Repo *repo, Id entry, Id keyname); @@ -173,6 +178,8 @@ void repo_unset(Repo *repo, Id p, Id keyname); void repo_internalize(Repo *repo); void repo_disable_paging(Repo *repo); +Id *repo_create_keyskip(Repo *repo, Id entry, Id **oldkeyskip); + /* iterator macros */ #define FOR_REPO_SOLVABLES(r, p, s) \ |