- * Enumerate transaction set problem types.
- */
-typedef enum rpmProblemType_e {
- RPMPROB_BADARCH, /*!< package ... is for a different architecture */
- RPMPROB_BADOS, /*!< package ... is for a different operating system */
- RPMPROB_PKG_INSTALLED, /*!< package ... is already installed */
- RPMPROB_BADRELOCATE,/*!< path ... is not relocatable for package ... */
- RPMPROB_REQUIRES, /*!< package ... has unsatisfied Requires: ... */
- RPMPROB_CONFLICT, /*!< package ... has unsatisfied Conflicts: ... */
- RPMPROB_NEW_FILE_CONFLICT, /*!< file ... conflicts between attemped installs of ... */
- RPMPROB_FILE_CONFLICT,/*!< file ... from install of ... conflicts with file from package ... */
- RPMPROB_OLDPACKAGE, /*!< package ... (which is newer than ...) is already installed */
- RPMPROB_DISKSPACE, /*!< installing package ... needs ... on the ... filesystem */
- RPMPROB_DISKNODES, /*!< installing package ... needs ... on the ... filesystem */
- } rpmProblemType;
-
-/** \ingroup rpmps
- * Create a problem item.
- * @param type type of problem
- * @param pkgNEVR package name
- * @param key filename or python object address
- * @param dn directory name
- * @param bn file base name
- * @param altNEVR related (e.g. through a dependency) package name
- * @param ulong1 generic pointer/long attribute
- * @return rpmProblem
- */
-rpmProblem rpmProblemCreate(rpmProblemType type,
- const char * pkgNEVR,
- fnpyKey key,
- const char * dn, const char * bn,
- const char * altNEVR,
- unsigned long ulong1);
-
-/** \ingroup rpmps
- * Destroy a problem item.
- * @param prob rpm problem
- * @return rpm problem (NULL)
- */
-rpmProblem rpmProblemFree(rpmProblem prob);
-
-/** \ingroup rpmps
- * Return package NEVR
- * @param prob rpm problem
- * @return package NEVR
- */
-const char * rpmProblemGetPkgNEVR(const rpmProblem prob);
-/** \ingroup rpmps
- * Return related (e.g. through a dependency) package NEVR
- * @param prob rpm problem
- * @return related (e.g. through a dependency) package NEVR
- */
-const char * rpmProblemGetAltNEVR(const rpmProblem prob);
-
-/** \ingroup rpmps
- * Return type of problem (dependency, diskpace etc)
- * @param prob rpm problem
- * @return type of problem
- */
-
-rpmProblemType rpmProblemGetType(const rpmProblem prob);
-
-/** \ingroup rpmps
- * Return filename or python object address of a problem
- * @param prob rpm problem
- * @return filename or python object address
- */
-fnpyKey rpmProblemGetKey(const rpmProblem prob);
-
-/** \ingroup rpmps
- * Return a generic data string from a problem
- * @param prob rpm problem
- * @return a generic data string
- * @todo needs a better name
- */
-const char * rpmProblemGetStr(const rpmProblem prob);
-/** \ingroup rpmps
- * Return generic pointer/long attribute from a problem
- * @param prob rpm problem
- * @return a generic pointer/long attribute
- * @todo needs a better name
- */
-unsigned long rpmProblemGetLong(const rpmProblem prob);
-
-/** \ingroup rpmps
- * Return formatted string representation of a problem.
- * @param prob rpm problem
- * @return formatted string (malloc'd)
- */
-extern char * rpmProblemString(const rpmProblem prob);
-
-/** \ingroup rpmps
- * Unreference a problem set instance.
- * @param ps problem set
- * @param msg
- * @return problem set
- */
-rpmps rpmpsUnlink (rpmps ps,
- const char * msg);
-
-/** \ingroup rpmps