summaryrefslogtreecommitdiff
path: root/src/pool.h
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-03-23 15:55:01 +0100
committerMichael Schroeder <mls@suse.de>2011-03-23 15:55:39 +0100
commit18579bb4c39283c45f3a323652d763097f0186de (patch)
treece2b670ca90ea671a9c3e8e6443b425af64649f0 /src/pool.h
parent77e6c815155b00c2650c078142c89f9dbf911123 (diff)
downloadlibsolv-18579bb4c39283c45f3a323652d763097f0186de.tar.gz
libsolv-18579bb4c39283c45f3a323652d763097f0186de.tar.bz2
libsolv-18579bb4c39283c45f3a323652d763097f0186de.zip
- delete fixed vendor classes, add pool_setvendorclasses() method
Diffstat (limited to 'src/pool.h')
-rw-r--r--src/pool.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pool.h b/src/pool.h
index fc08d2f..05013d5 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -44,13 +44,13 @@ struct _Repodata;
struct _Repokey;
struct _KeyValue;
-typedef struct _Repopos {
+typedef struct _Datapos {
struct _Repo *repo;
Id solvid;
Id repodataid;
Id schema;
Id dp;
-} Repopos;
+} Datapos;
struct _Pool {
void *appdata; /* application private pointer */
@@ -92,6 +92,7 @@ struct _Pool {
Id lastarch; /* last valid entry in id2arch/id2color */
Queue vendormap; /* map vendor to vendorclasses mask */
+ const char **vendorclasses; /* vendor equivalence classes */
/* providers data, as two-step indirect list
* whatprovides[Id] -> Offset into whatprovidesdata for name
@@ -126,7 +127,7 @@ struct _Pool {
void *loadcallbackdata;
/* search position */
- Repopos pos;
+ Datapos pos;
};
#ifdef MULTI_SEMANTICS
@@ -190,6 +191,7 @@ extern void pool_setdebuglevel(Pool *pool, int level);
#ifdef MULTI_SEMANTICS
extern void pool_setdisttype(Pool *pool, int disttype);
#endif
+extern void pool_setvendorclasses(Pool *pool, const char **vendorclasses);
extern void pool_debug(Pool *pool, int type, const char *format, ...) __attribute__((format(printf, 3, 4)));