From: Stefan Schubert Date: Thu, 8 Nov 2007 14:55:47 +0000 (+0000) Subject: refine_suggestion X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~840 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83ab62aa4c6d27fe2b1c5e10cebf2c759fb57024;p=thirdparty%2Flibsolv.git refine_suggestion archchanges moved to header file. This funktions are needed in libzypp --- diff --git a/src/solver.c b/src/solver.c index 6aa5d5d9..c0429a12 100644 --- a/src/solver.c +++ b/src/solver.c @@ -1101,7 +1101,7 @@ addrulesforweak(Solver *solv, Map *m) if (pool->verbose) printf("done. (%d)\n", solv->nrules); } -static inline int +int archchanges(Pool *pool, Solvable *s1, Solvable *s2) { Id a1 = s1->arch, a2 = s2->arch; @@ -2373,7 +2373,7 @@ run_solver(Solver *solv, int disablerules, int doweak) * refine_suggestion */ -static void +void refine_suggestion(Solver *solv, Id *problem, Id sug, Queue *refined) { Rule *r; diff --git a/src/solver.h b/src/solver.h index f109f869..30a0febb 100644 --- a/src/solver.h +++ b/src/solver.h @@ -128,5 +128,7 @@ extern void prune_best_version_arch(Pool *pool, Queue *plist); void printdecisions(Solver *solv); +void refine_suggestion(Solver *solv, Id *problem, Id sug, Queue *refined); +int archchanges(Pool *pool, Solvable *s1, Solvable *s2); #endif /* SOLVER_H */