rpmprob.h
Go to the documentation of this file.
#ifndef _RPMPROB_H
#define _RPMPROB_H
#include <stdio.h>
#include <rpm/rpmtypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct rpmProblem_s * rpmProblem;
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),
RPMPROB_FILTER_VERIFY = (1 << 9),
};
typedef rpmFlags rpmprobFilterFlags;
typedef 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,
RPMPROB_VERIFY,
} rpmProblemType;
rpmProblem rpmProblemCreate(rpmProblemType type,
const char * pkgNEVR, fnpyKey key,
const char * altNEVR,
const char * str, uint64_t number);
rpmProblem rpmProblemFree(rpmProblem prob);
rpmProblem rpmProblemLink(rpmProblem prob);
int rpmProblemCompare(rpmProblem ap, rpmProblem bp);
const char * rpmProblemGetPkgNEVR(rpmProblem prob);
const char * rpmProblemGetAltNEVR(rpmProblem prob);
rpmProblemType rpmProblemGetType(rpmProblem prob);
fnpyKey rpmProblemGetKey(rpmProblem prob);
const char * rpmProblemGetStr(rpmProblem prob);
rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob);
char * rpmProblemString(rpmProblem prob);
#ifdef __cplusplus
}
#endif
#endif /* _RPMPROB_H */
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
RPMPROB_FILE_CONFLICT
@ RPMPROB_FILE_CONFLICT
Definition: rpmprob.h:48
rpmProblemGetStr
const char * rpmProblemGetStr(rpmProblem prob)
rpmProblemType
enum rpmProblemType_e rpmProblemType
RPMPROB_OBSOLETES
@ RPMPROB_OBSOLETES
Definition: rpmprob.h:52
RPMPROB_FILTER_VERIFY
@ RPMPROB_FILTER_VERIFY
Definition: rpmprob.h:32
RPMPROB_FILTER_FORCERELOCATE
@ RPMPROB_FILTER_FORCERELOCATE
Definition: rpmprob.h:26
RPMPROB_FILTER_DISKSPACE
@ RPMPROB_FILTER_DISKSPACE
Definition: rpmprob.h:30
RPMPROB_FILTER_IGNOREOS
@ RPMPROB_FILTER_IGNOREOS
Definition: rpmprob.h:23
RPMPROB_FILTER_REPLACEPKG
@ RPMPROB_FILTER_REPLACEPKG
Definition: rpmprob.h:25
rpmProblemLink
rpmProblem rpmProblemLink(rpmProblem prob)
RPMPROB_BADRELOCATE
@ RPMPROB_BADRELOCATE
Definition: rpmprob.h:44
RPMPROB_BADARCH
@ RPMPROB_BADARCH
Definition: rpmprob.h:41
rpmProblemGetPkgNEVR
const char * rpmProblemGetPkgNEVR(rpmProblem prob)
RPMPROB_OLDPACKAGE
@ RPMPROB_OLDPACKAGE
Definition: rpmprob.h:49
rpmProblemType_e
rpmProblemType_e
Definition: rpmprob.h:40
rpmProblemGetType
rpmProblemType rpmProblemGetType(rpmProblem prob)
RPMPROB_FILTER_REPLACEOLDFILES
@ RPMPROB_FILTER_REPLACEOLDFILES
Definition: rpmprob.h:28
rpmProblem
struct rpmProblem_s * rpmProblem
Definition: rpmprob.h:16
rpmProblemFree
rpmProblem rpmProblemFree(rpmProblem prob)
rpmprobFilterFlags
rpmFlags rpmprobFilterFlags
Definition: rpmprob.h:35
RPMPROB_FILTER_OLDPACKAGE
@ RPMPROB_FILTER_OLDPACKAGE
Definition: rpmprob.h:29
rpmprobFilterFlags_e
rpmprobFilterFlags_e
Definition: rpmprob.h:21
RPMPROB_DISKSPACE
@ RPMPROB_DISKSPACE
Definition: rpmprob.h:50
RPMPROB_FILTER_REPLACENEWFILES
@ RPMPROB_FILTER_REPLACENEWFILES
Definition: rpmprob.h:27
rpmProblemCompare
int rpmProblemCompare(rpmProblem ap, rpmProblem bp)
RPMPROB_BADOS
@ RPMPROB_BADOS
Definition: rpmprob.h:42
RPMPROB_CONFLICT
@ RPMPROB_CONFLICT
Definition: rpmprob.h:46
rpmProblemGetAltNEVR
const char * rpmProblemGetAltNEVR(rpmProblem prob)
RPMPROB_PKG_INSTALLED
@ RPMPROB_PKG_INSTALLED
Definition: rpmprob.h:43
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmProblemCreate
rpmProblem rpmProblemCreate(rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *altNEVR, const char *str, uint64_t number)
fnpyKey
const void * fnpyKey
Definition: rpmtypes.h:76
rpmProblemGetKey
fnpyKey rpmProblemGetKey(rpmProblem prob)
RPMPROB_FILTER_IGNOREARCH
@ RPMPROB_FILTER_IGNOREARCH
Definition: rpmprob.h:24
RPMPROB_FILTER_DISKNODES
@ RPMPROB_FILTER_DISKNODES
Definition: rpmprob.h:31
RPMPROB_FILTER_NONE
@ RPMPROB_FILTER_NONE
Definition: rpmprob.h:22
rpmProblemString
char * rpmProblemString(rpmProblem prob)
RPMPROB_NEW_FILE_CONFLICT
@ RPMPROB_NEW_FILE_CONFLICT
Definition: rpmprob.h:47
RPMPROB_REQUIRES
@ RPMPROB_REQUIRES
Definition: rpmprob.h:45
RPMPROB_VERIFY
@ RPMPROB_VERIFY
Definition: rpmprob.h:53
rpmProblemGetDiskNeed
rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob)
RPMPROB_DISKNODES
@ RPMPROB_DISKNODES
Definition: rpmprob.h:51