2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
16 #include "pooltypes.h"
18 typedef struct _Repo {
20 struct _Pool *pool; /* pool containing repo data */
21 int start; /* start of this repo solvables within pool->solvables */
22 int nsolvables; /* number of solvables repo is contributing to pool */
24 int priority; /* priority of this repo */
26 Id *idarraydata; /* array of metadata Ids, solvable dependencies are offsets into this array */
33 extern Offset repo_addid(Repo *repo, Offset olddeps, Id id);
34 extern Offset repo_addid_dep(Repo *repo, Offset olddeps, Id id, int isreq);
35 extern Offset repo_reserve_ids(Repo *repo, Offset olddeps, int num);
36 extern Offset repo_fix_legacy(Repo *repo, Offset provides, Offset supplements);
38 extern Repo *pool_addrepo_empty(Pool *pool);
39 extern void pool_freerepo(Pool *pool, Repo *repo);
41 static inline const char *repo_name(const Repo *repo)