- add appdata application private pointer to Pool/Repo
authorMichael Schroeder <mls@suse.de>
Tue, 23 Jun 2009 15:03:52 +0000 (17:03 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 23 Jun 2009 15:03:52 +0000 (17:03 +0200)
src/pool.h
src/repo.h
src/solver.h

index 62134c8..47e12cc 100644 (file)
@@ -52,6 +52,8 @@ typedef struct _Repopos {
 } Repopos;
 
 struct _Pool {
+  void *appdata;               /* application private pointer */
+
   struct _Stringpool ss;
 
   Reldep *rels;                        /* table of rels: Id -> Reldep */
index 6ceeb65..2fdfa63 100644 (file)
@@ -22,6 +22,8 @@
 typedef struct _Repo {
   const char *name;
   Id repoid;                   /* our id */
+  void *appdata;               /* application private pointer */
+
   Pool *pool;                  /* pool containing repo data */
 
   int start;                   /* start of this repo solvables within pool->solvables */
index 3f6574f..7a92365 100644 (file)
@@ -39,7 +39,7 @@ typedef void (*UpdateCandidateCb) (Pool *pool, Solvable *solvable, Queue *candit
 struct _Solver;
 
 typedef struct _Solver {
-  Pool *pool;
+  Pool *pool;                          /* back pointer to pool */
   Queue job;                           /* copy of the job we're solving */
 
   Transaction trans;                   /* calculated transaction */