Imported Upstream version 0.7.27
[platform/upstream/libsolv.git] / src / problems.h
index f9b1efc..9e4ad1f 100644 (file)
@@ -29,6 +29,13 @@ struct s_Solver;
 #define SOLVER_SOLUTION_POOLJOB                (-4)
 #define SOLVER_SOLUTION_BLACK          (-5)
 #define SOLVER_SOLUTION_STRICTREPOPRIORITY     (-6)
+/* replace solution types */
+#define SOLVER_SOLUTION_ERASE                   (-100)
+#define SOLVER_SOLUTION_REPLACE                 (-101)
+#define SOLVER_SOLUTION_REPLACE_DOWNGRADE       (-102)
+#define SOLVER_SOLUTION_REPLACE_ARCHCHANGE      (-103)
+#define SOLVER_SOLUTION_REPLACE_VENDORCHANGE    (-104)
+#define SOLVER_SOLUTION_REPLACE_NAMECHANGE      (-105)
 
 void solver_recordproblem(struct s_Solver *solv, Id rid);
 void solver_fixproblem(struct s_Solver *solv, Id rid);
@@ -45,6 +52,7 @@ unsigned int solver_solutionelement_count(struct s_Solver *solv, Id problem, Id
 Id solver_solutionelement_internalid(struct s_Solver *solv, Id problem, Id solution);
 Id solver_solutionelement_extrajobflags(struct s_Solver *solv, Id problem, Id solution);
 Id solver_next_solutionelement(struct s_Solver *solv, Id problem, Id solution, Id element, Id *p, Id *rp);
+void solver_all_solutionelements(struct s_Solver *solv, Id problem, Id solution, int expandreplaces, Queue *q);
 
 void solver_take_solutionelement(struct s_Solver *solv, Id p, Id rp, Id extrajobflags, Queue *job);
 void solver_take_solution(struct s_Solver *solv, Id problem, Id solution, Queue *job);
@@ -55,6 +63,7 @@ void solver_findallproblemrules(struct s_Solver *solv, Id problem, Queue *rules)
 extern const char *solver_problemruleinfo2str(struct s_Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep);
 extern const char *solver_problem2str(struct s_Solver *solv, Id problem);
 extern const char *solver_solutionelement2str(struct s_Solver *solv, Id p, Id rp);
+extern const char *solver_solutionelementtype2str(struct s_Solver *solv, int type, Id p, Id rp);
 
 #ifdef __cplusplus
 }