-typedef enum {
- SOLVER_PROBLEM_UPDATE_RULE,
- SOLVER_PROBLEM_JOB_RULE,
- SOLVER_PROBLEM_JOB_NOTHING_PROVIDES_DEP,
- SOLVER_PROBLEM_NOT_INSTALLABLE,
- SOLVER_PROBLEM_NOTHING_PROVIDES_DEP,
- SOLVER_PROBLEM_SAME_NAME,
- SOLVER_PROBLEM_PACKAGE_CONFLICT,
- SOLVER_PROBLEM_PACKAGE_OBSOLETES,
- SOLVER_PROBLEM_DEP_PROVIDERS_NOT_INSTALLABLE,
- SOLVER_PROBLEM_SELF_CONFLICT,
- SOLVER_PROBLEM_RPM_RULE,
- SOLVER_PROBLEM_DISTUPGRADE_RULE,
- SOLVER_PROBLEM_INFARCH_RULE
-} SolverProbleminfo;
-
-typedef enum {
- SOLVER_RULE_UNKNOWN = 0,
- SOLVER_RULE_RPM = 0x100,
- SOLVER_RULE_RPM_NOT_INSTALLABLE,
- SOLVER_RULE_RPM_NOTHING_PROVIDES_DEP,
- SOLVER_RULE_RPM_PACKAGE_REQUIRES,
- SOLVER_RULE_RPM_SELF_CONFLICT,
- SOLVER_RULE_RPM_PACKAGE_CONFLICT,
- SOLVER_RULE_RPM_SAME_NAME,
- SOLVER_RULE_RPM_PACKAGE_OBSOLETES,
- SOLVER_RULE_RPM_IMPLICIT_OBSOLETES,
- SOLVER_RULE_UPDATE = 0x200,
- SOLVER_RULE_FEATURE = 0x300,
- SOLVER_RULE_JOB = 0x400,
- SOLVER_RULE_JOB_NOTHING_PROVIDES_DEP,
- SOLVER_RULE_DISTUPGRADE = 0x500,
- SOLVER_RULE_INFARCH = 0x600,
- SOLVER_RULE_LEARNT = 0x700
-} SolverRuleinfo;
-
-#define SOLVER_RULE_TYPEMASK 0xff00
-
-/* backward compatibility */
-#define SOLVER_PROBLEM_UPDATE_RULE SOLVER_RULE_UPDATE
-#define SOLVER_PROBLEM_JOB_RULE SOLVER_RULE_JOB
-#define SOLVER_PROBLEM_JOB_NOTHING_PROVIDES_DEP SOLVER_RULE_JOB_NOTHING_PROVIDES_DEP
-#define SOLVER_PROBLEM_NOT_INSTALLABLE SOLVER_RULE_RPM_NOT_INSTALLABLE
-#define SOLVER_PROBLEM_NOTHING_PROVIDES_DEP SOLVER_RULE_RPM_NOTHING_PROVIDES_DEP
-#define SOLVER_PROBLEM_SAME_NAME SOLVER_RULE_RPM_SAME_NAME
-#define SOLVER_PROBLEM_PACKAGE_CONFLICT SOLVER_RULE_RPM_PACKAGE_CONFLICT
-#define SOLVER_PROBLEM_PACKAGE_OBSOLETES SOLVER_RULE_RPM_PACKAGE_OBSOLETES
-#define SOLVER_PROBLEM_DEP_PROVIDERS_NOT_INSTALLABLE SOLVER_RULE_RPM_PACKAGE_REQUIRES
-#define SOLVER_PROBLEM_SELF_CONFLICT SOLVER_RULE_RPM_SELF_CONFLICT
-#define SOLVER_PROBLEM_RPM_RULE SOLVER_RULE_RPM
-#define SOLVER_PROBLEM_DISTUPGRADE_RULE SOLVER_RULE_DISTUPGRADE
-#define SOLVER_PROBLEM_INFARCH_RULE SOLVER_RULE_INFARCH
-
-
-#define SOLVER_SOLUTION_JOB (0)
-#define SOLVER_SOLUTION_DISTUPGRADE (-1)
-#define SOLVER_SOLUTION_INFARCH (-2)
-
-#define SOLVER_TRANSACTION_ERASE 0x10
-#define SOLVER_TRANSACTION_REINSTALLED 0x11
-#define SOLVER_TRANSACTION_DOWNGRADED 0x12
-#define SOLVER_TRANSACTION_CHANGED 0x13
-#define SOLVER_TRANSACTION_UPGRADED 0x14
-#define SOLVER_TRANSACTION_OBSOLETED 0x15
-
-#define SOLVER_TRANSACTION_INSTALL 0x20
-#define SOLVER_TRANSACTION_REINSTALL 0x21
-#define SOLVER_TRANSACTION_DOWNGRADE 0x22
-#define SOLVER_TRANSACTION_CHANGE 0x23
-#define SOLVER_TRANSACTION_UPGRADE 0x24
-#define SOLVER_TRANSACTION_RENAME 0x25
-
-#define SOLVER_TRANSACTION_MULTIINSTALL 0x30
-#define SOLVER_TRANSACTION_MULTIREINSTALL 0x31