- 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 62134c8b675c2aa232e2cb984917fd0b6e36fa3a..47e12cc66699d9ef188b956f4370aa3ffce1df75 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 6ceeb659c851effa0a29078a8889bbca0f112b32..2fdfa63efb783d532695c25a2df29b628a0533ac 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 3f6574fd7f57f0f5cad61ecb0577d629cb958048..7a92365e44209c6af16a0475f2711a4a092534d0 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 */