2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
9 * Generic policy interface for SAT solver
15 #define POLICY_MODE_CHOOSE 0
16 #define POLICY_MODE_RECOMMEND 1
17 #define POLICY_MODE_SUGGEST 2
19 /* legacy, do not use! */
20 extern void prune_best_version_arch(Pool *pool, Queue *plist);
22 extern void policy_filter_unwanted(Solver *solv, Queue *plist, Id inst, int mode);
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,
29 int allowall); /* do not regard policies for vendor,architecuture,... change */