Go to the documentation of this file.
13 #ifndef SATSOLVER_REPO_H
14 #define SATSOLVER_REPO_H
77 if (p + 1 > repo->
end)
99 if (p + count > repo->
end)
100 repo->
end = p + count;
108 #define FOR_REPO_SOLVABLES(r, p, s) \
109 for (p = (r)->start, s = (r)->pool->solvables + p; p < (r)->end; p++, s = (r)->pool->solvables + p) \
117 return repoid ? pool->
repos[repoid - 1] : 0;
122 if (!s->
arch || s->
arch == ARCH_SRC || s->
arch == ARCH_NOSRC)
139 #define SEARCH_NEXT_KEY 1
140 #define SEARCH_NEXT_SOLVABLE 2
141 #define SEARCH_STOP 3
142 #define SEARCH_ENTERSUB -1
157 #define SEARCH_STRINGMASK 15
158 #define SEARCH_STRING 1
159 #define SEARCH_STRINGSTART 2
160 #define SEARCH_STRINGEND 3
161 #define SEARCH_SUBSTRING 4
162 #define SEARCH_GLOB 5
163 #define SEARCH_REGEX 6
164 #define SEARCH_ERROR 15
165 #define SEARCH_NOCASE (1<<7)
168 #define SEARCH_NO_STORAGE_SOLVABLE (1<<8)
169 #define SEARCH_SUB (1<<9)
170 #define SEARCH_ARRAYSENTINEL (1<<10)
171 #define SEARCH_DISABLED_REPOS (1<<11)
172 #define SEARCH_COMPLETE_FILELIST (1<<12)
175 #define SEARCH_SKIP_KIND (1<<16)
179 #define SEARCH_FILES (1<<17)
180 #define SEARCH_CHECKSUMS (1<<18)
183 #define SEARCH_THISSOLVID (1<<31)
187 #define REPO_REUSE_REPODATA (1 << 0)
188 #define REPO_NO_INTERNALIZE (1 << 1)
189 #define REPO_LOCALPOOL (1 << 2)
190 #define REPO_USE_LOADING (1 << 3)
191 #define REPO_EXTEND_SOLVABLES (1 << 4)
196 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);
309 #define DI_SEEK_STAY (1 << 16)
310 #define DI_SEEK_CHILD 1
311 #define DI_SEEK_PARENT 2
312 #define DI_SEEK_REWIND 3