From: Michael Schroeder Date: Tue, 23 Jun 2009 15:03:52 +0000 (+0200) Subject: - add appdata application private pointer to Pool/Repo X-Git-Tag: BASE-SuSE-Code-12_1-Branch~223 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7196449f72da45357ec9ff9006158dd28974835;p=thirdparty%2Flibsolv.git - add appdata application private pointer to Pool/Repo --- diff --git a/src/pool.h b/src/pool.h index 62134c8b..47e12cc6 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 6ceeb659..2fdfa63e 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 3f6574fd..7a92365e 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 */