Structures and prototypes used for an rpm problem item. More...
#include <stdio.h>
#include <rpm/rpmtypes.h>
Go to the source code of this file.
Typedefs | |
typedef struct rpmProblem_s * | rpmProblem |
typedef rpmFlags | rpmprobFilterFlags |
typedef enum rpmProblemType_e | rpmProblemType |
Enumerate transaction set problem types. | |
Enumerations | |
enum | rpmprobFilterFlags_e { RPMPROB_FILTER_NONE = 0, RPMPROB_FILTER_IGNOREOS = (1 << 0), RPMPROB_FILTER_IGNOREARCH = (1 << 1), RPMPROB_FILTER_REPLACEPKG = (1 << 2), RPMPROB_FILTER_FORCERELOCATE = (1 << 3), RPMPROB_FILTER_REPLACENEWFILES = (1 << 4), RPMPROB_FILTER_REPLACEOLDFILES = (1 << 5), RPMPROB_FILTER_OLDPACKAGE = (1 << 6), RPMPROB_FILTER_DISKSPACE = (1 << 7), RPMPROB_FILTER_DISKNODES = (1 << 8) } |
enum | rpmProblemType_e { RPMPROB_BADARCH, RPMPROB_BADOS, RPMPROB_PKG_INSTALLED, RPMPROB_BADRELOCATE, RPMPROB_REQUIRES, RPMPROB_CONFLICT, RPMPROB_NEW_FILE_CONFLICT, RPMPROB_FILE_CONFLICT, RPMPROB_OLDPACKAGE, RPMPROB_DISKSPACE, RPMPROB_DISKNODES, RPMPROB_OBSOLETES } |
Enumerate transaction set problem types. More... | |
Functions | |
rpmProblem | rpmProblemCreate (rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *altNEVR, const char *str, uint64_t number) |
Create a problem item. | |
rpmProblem | rpmProblemFree (rpmProblem prob) |
Destroy a problem item. | |
rpmProblem | rpmProblemLink (rpmProblem prob) |
Reference an rpmProblem instance. | |
int | rpmProblemCompare (rpmProblem ap, rpmProblem bp) |
Compare two problems for equality. | |
const char * | rpmProblemGetPkgNEVR (rpmProblem prob) |
Return package NEVR. | |
const char * | rpmProblemGetAltNEVR (rpmProblem prob) |
Return related (e.g. | |
rpmProblemType | rpmProblemGetType (rpmProblem prob) |
Return type of problem (dependency, diskpace etc). | |
fnpyKey | rpmProblemGetKey (rpmProblem prob) |
Return filename or python object address of a problem. | |
const char * | rpmProblemGetStr (rpmProblem prob) |
Return a generic data string from a problem. | |
rpm_loff_t | rpmProblemGetDiskNeed (rpmProblem prob) |
Return disk requirement (needed disk space / number of inodes) depending on problem type. | |
char * | rpmProblemString (rpmProblem prob) |
Return formatted string representation of a problem. |
Structures and prototypes used for an rpm problem item.
Definition in file rpmprob.h.
typedef rpmFlags rpmprobFilterFlags |
typedef struct rpmProblem_s* rpmProblem |
typedef enum rpmProblemType_e rpmProblemType |
Enumerate transaction set problem types.
enum rpmprobFilterFlags_e |
enum rpmProblemType_e |
Enumerate transaction set problem types.
int rpmProblemCompare | ( | rpmProblem | ap, | |
rpmProblem | bp | |||
) |
Compare two problems for equality.
ap | 1st problem | |
bp | 2nd problem |
rpmProblem rpmProblemCreate | ( | rpmProblemType | type, | |
const char * | pkgNEVR, | |||
fnpyKey | key, | |||
const char * | altNEVR, | |||
const char * | str, | |||
uint64_t | number | |||
) |
Create a problem item.
type | type of problem | |
pkgNEVR | package name | |
key | filename or python object address | |
altNEVR | related (e.g. through a dependency) package name | |
str | generic string attribute | |
number | generic number attribute |
rpmProblem rpmProblemFree | ( | rpmProblem | prob | ) |
Destroy a problem item.
prob | rpm problem |
const char* rpmProblemGetAltNEVR | ( | rpmProblem | prob | ) |
Return related (e.g.
through a dependency) package NEVR
prob | rpm problem |
rpm_loff_t rpmProblemGetDiskNeed | ( | rpmProblem | prob | ) |
Return disk requirement (needed disk space / number of inodes) depending on problem type.
On problem types other than RPMPROB_DISKSPACE and RPMPROB_DISKNODES return value is undefined.
prob | rpm problem |
fnpyKey rpmProblemGetKey | ( | rpmProblem | prob | ) |
Return filename or python object address of a problem.
prob | rpm problem |
const char* rpmProblemGetPkgNEVR | ( | rpmProblem | prob | ) |
Return package NEVR.
prob | rpm problem |
const char* rpmProblemGetStr | ( | rpmProblem | prob | ) |
Return a generic data string from a problem.
prob | rpm problem |
rpmProblemType rpmProblemGetType | ( | rpmProblem | prob | ) |
Return type of problem (dependency, diskpace etc).
prob | rpm problem |
rpmProblem rpmProblemLink | ( | rpmProblem | prob | ) |
Reference an rpmProblem instance.
prob | rpm problem |
char* rpmProblemString | ( | rpmProblem | prob | ) |
Return formatted string representation of a problem.
prob | rpm problem |