- changed debug mechanism a bit, it is now part of the pool
[platform/upstream/libsolv.git] / src / policy.h
1 /*
2  * Copyright (c) 2007, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 /*
9  * Generic policy interface for SAT solver
10  * 
11  */
12
13 #include "solver.h"
14
15 #define POLICY_MODE_CHOOSE      0
16 #define POLICY_MODE_RECOMMEND   1
17 #define POLICY_MODE_SUGGEST     2
18
19 /* legacy, do not use! */
20 extern void prune_best_version_arch(Pool *pool, Queue *plist);
21
22 extern void policy_filter_unwanted(Solver *solv, Queue *plist, Id inst, int mode);
23
24 extern int  policy_illegal_archchange(Pool *pool, Solvable *s1, Solvable *s2);
25 extern int  policy_illegal_vendorchange(Pool *pool, Solvable *s1, Solvable *s2);
26 extern void policy_findupdatepackages(Solver *solv,
27                                       Solvable *s,
28                                       Queue *qs,
29                                       int allowall); /* do not regard policies for vendor,architecuture,... change */