Imported Upstream version 0.6.33
[platform/upstream/libsolv.git] / src / problems.h
index 4f5021f..63319d6 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef LIBSOLV_PROBLEMS_H
 #define LIBSOLV_PROBLEMS_H
 
+#include "rules.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -26,8 +28,11 @@ struct _Solver;
 #define SOLVER_SOLUTION_BEST            (-3)
 #define SOLVER_SOLUTION_POOLJOB         (-4)
 
-void solver_disableproblem(struct _Solver *solv, Id v);
-void solver_enableproblem(struct _Solver *solv, Id v);
+void solver_recordproblem(struct _Solver *solv, Id rid);
+void solver_fixproblem(struct _Solver *solv, Id rid);
+Id solver_autouninstall(struct _Solver *solv, int start);
+void solver_disableproblemset(struct _Solver *solv, int start);
+
 int solver_prepare_solutions(struct _Solver *solv);
 
 unsigned int solver_problem_count(struct _Solver *solv);
@@ -45,6 +50,10 @@ void solver_take_solution(struct _Solver *solv, Id problem, Id solution, Queue *
 Id solver_findproblemrule(struct _Solver *solv, Id problem);
 void solver_findallproblemrules(struct _Solver *solv, Id problem, Queue *rules);
 
+extern const char *solver_problemruleinfo2str(struct _Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep);
+extern const char *solver_problem2str(struct _Solver *solv, Id problem);
+extern const char *solver_solutionelement2str(struct _Solver *solv, Id p, Id rp);
+
 #ifdef __cplusplus
 }
 #endif