{
if (solv && solv->bestSolvableCb)
{ /* The application is responsible for */
- return solv->bestSolvableCb (plist);
+ return solv->bestSolvableCb (solv->pool, plist);
}
if (plist->count > 1)
if (solv && solv->archCheckCb)
{ /* The application is responsible for */
- return solv->archCheckCb (s1, s2);
+ return solv->archCheckCb (solv->pool, s1, s2);
}
/* we allow changes to/from noarch */
if (solv && solv->vendorCheckCb)
{ /* The application is responsible for */
- return solv->vendorCheckCb (s1, s2);
+ return solv->vendorCheckCb (solv->pool, s1, s2);
}
if (s1->vendor == s2->vendor)
if (solv && solv->updateCandidateCb)
{ /* The application is responsible for */
- return solv->updateCandidateCb (s, qs);
+ return solv->updateCandidateCb (solv->pool, s, qs);
}
/*
* Callback definitions in order to "overwrite" the policies by an external application.
*/
-typedef void (*BestSolvableCb) (Queue *canditates);
-typedef int (*ArchCheckCb) (Solvable *solvable1, Solvable *solvable2);
-typedef int (*VendorCheckCb) (Solvable *solvable1, Solvable *solvable2);
-typedef void (*UpdateCandidateCb) (Solvable *solvable, Queue *canditates);
+typedef void (*BestSolvableCb) (Pool *pool, Queue *canditates);
+typedef int (*ArchCheckCb) (Pool *pool, Solvable *solvable1, Solvable *solvable2);
+typedef int (*VendorCheckCb) (Pool *pool, Solvable *solvable1, Solvable *solvable2);
+typedef void (*UpdateCandidateCb) (Pool *pool, Solvable *solvable, Queue *canditates);
/* ----------------------------------------------
/* Finding best candidate
*
* Callback definition:
- * void bestSolvable (Queue *canditates)
+ * void bestSolvable (Pool *pool, Queue *canditates)
* candidates : List of canditates which has to be sorted by the function call
* return candidates: Sorted list of the candidates(first is the best).
*/
/* Checking if two solvables has compatible architectures
*
* Callback definition:
- * int archCheck (Solvable *solvable1, Solvable *solvable2);
+ * int archCheck (Pool *pool, Solvable *solvable1, Solvable *solvable2);
*
* return 0 it the two solvables has compatible architectures
*/
/* Checking if two solvables has compatible vendors
*
* Callback definition:
- * int vendorCheck (Solvable *solvable1, Solvable *solvable2);
+ * int vendorCheck (Pool *pool, Solvable *solvable1, Solvable *solvable2);
*
* return 0 it the two solvables has compatible architectures
*/
/* Evaluate update candidate
*
* Callback definition:
- * void pdateCandidateCb (Solvable *solvable, Queue *canditates)
+ * void pdateCandidateCb (Pool *pool, Solvable *solvable, Queue *canditates)
* solvable : for which updates should be search
* candidates : List of candidates (This list depends on other
* restrictions like architecture and vendor policies too)