ref: refs/heads/master
commit bf965b36eefe9f7051a950bb0e1a819d3d2deb63
Author: Michael Schroeder
Date: Tue Jun 23 17:03:52 2009 +0200
- add appdata application private pointer to Pool/Repo
---
src/pool.h | 2 ++
src/repo.h | 2 ++
src/solver.h | 2 +-
3 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/pool.h b/src/pool.h
index 62134c8..47e12cc 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -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 */
diff --git a/src/repo.h b/src/repo.h
index 6ceeb65..2fdfa63 100644
--- a/src/repo.h
+++ b/src/repo.h
@@ -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 */
diff --git a/src/solver.h b/src/solver.h
index 3f6574f..7a92365 100644
--- a/src/solver.h
+++ b/src/solver.h
@@ -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 */
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org