summaryrefslogtreecommitdiff
path: root/src/policy.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-05-25 15:28:34 +0200
committerMichael Schroeder <mls@suse.de>2011-05-25 15:28:34 +0200
commit66e7a252604ae81a027a2c7b8c437b7228eddcc4 (patch)
treea44aafbdb3a2cba25f6581f409b779a7354b93cf /src/policy.c
parent55f5371d10bc44570b2d50bb737aba8a3ae1e93f (diff)
downloadlibsolv-66e7a252604ae81a027a2c7b8c437b7228eddcc4.tar.gz
libsolv-66e7a252604ae81a027a2c7b8c437b7228eddcc4.tar.bz2
libsolv-66e7a252604ae81a027a2c7b8c437b7228eddcc4.zip
- add solver_private.h, make repo_ functions return an int, make solver_solv return the problem count
Diffstat (limited to 'src/policy.c')
-rw-r--r--src/policy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/policy.c b/src/policy.c
index 8ca71f4..ab5f55b 100644
--- a/src/policy.c
+++ b/src/policy.c
@@ -16,6 +16,7 @@
#include <string.h>
#include "solver.h"
+#include "solver_private.h"
#include "evr.h"
#include "policy.h"
#include "poolvendor.h"
@@ -259,7 +260,7 @@ prune_to_recommended(Solver *solv, Queue *plist)
plist->count = j;
}
-void
+static void
prune_to_best_arch(const Pool *pool, Queue *plist)
{
Id a, bestscore;
@@ -350,7 +351,7 @@ prune_obsoleted(Pool *pool, Queue *plist)
* sort list of packages (given through plist) by name and evr
* return result through plist
*/
-void
+static void
prune_to_best_version(Pool *pool, Queue *plist)
{
int i, j;
@@ -407,7 +408,7 @@ prune_to_best_version(Pool *pool, Queue *plist)
* (rates arch higher than version, but thats a policy)
*/
-void
+static void
prune_best_arch_name_version(const Solver *solv, Pool *pool, Queue *plist)
{
if (solv && solv->bestSolvableCb)