From e7196449f72da45357ec9ff9006158dd28974835 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 23 Jun 2009 17:03:52 +0200 Subject: [PATCH] - 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 deletion(-) 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 */ -- 2.7.4