summaryrefslogtreecommitdiff
path: root/src/repo.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2019-09-10 15:38:34 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2019-09-10 15:38:34 +0900
commit2491213c77850ed26991b572809a5ca4a61fa89b (patch)
treecd2e4928ad52795bc4a318a0721f487c282a33be /src/repo.h
parent0e46e80434781d1acbc4f5716827bf8688450a30 (diff)
downloadlibsolv-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.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/repo.h b/src/repo.h
index bd9c58c..4abfb0f 100644
--- a/src/repo.h
+++ b/src/repo.h
@@ -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) \