rpm  4.17.0
rpmprob.h
Go to the documentation of this file.
1 #ifndef _RPMPROB_H
2 #define _RPMPROB_H
3 
9 #include <stdio.h>
10 #include <rpm/rpmtypes.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef struct rpmProblem_s * rpmProblem;
17 
32  RPMPROB_FILTER_VERIFY = (1 << 9),
33 };
34 
36 
40 typedef enum rpmProblemType_e {
55 
67  const char * pkgNEVR, fnpyKey key,
68  const char * altNEVR,
69  const char * str, uint64_t number);
70 
77 
84 
92 
99 const char * rpmProblemGetPkgNEVR(rpmProblem prob);
105 const char * rpmProblemGetAltNEVR(rpmProblem prob);
106 
114 
121 
128 const char * rpmProblemGetStr(rpmProblem prob);
129 
138 
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif /* _RPMPROB_H */
rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob)
Return disk requirement (needed disk space / number of inodes) depending on problem type.
rpmProblemType rpmProblemGetType(rpmProblem prob)
Return type of problem (dependency, diskpace etc)
int rpmProblemCompare(rpmProblem ap, rpmProblem bp)
Compare two problems for equality.
rpmProblem rpmProblemFree(rpmProblem prob)
Destroy a problem item.
const char * rpmProblemGetPkgNEVR(rpmProblem prob)
Return package NEVR.
const char * rpmProblemGetAltNEVR(rpmProblem prob)
Return related (e.g.
rpmProblem rpmProblemCreate(rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *altNEVR, const char *str, uint64_t number)
Create a problem item.
rpmProblem rpmProblemLink(rpmProblem prob)
Reference an rpmProblem instance.
char * rpmProblemString(rpmProblem prob)
Return formatted string representation of a problem.
rpmprobFilterFlags_e
Definition: rpmprob.h:21
rpmProblemType_e
Enumerate transaction set problem types.
Definition: rpmprob.h:40
enum rpmProblemType_e rpmProblemType
Enumerate transaction set problem types.
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.
@ RPMPROB_FILTER_IGNOREARCH
Definition: rpmprob.h:24
@ RPMPROB_FILTER_FORCERELOCATE
Definition: rpmprob.h:26
@ RPMPROB_FILTER_VERIFY
Definition: rpmprob.h:32
@ RPMPROB_FILTER_DISKSPACE
Definition: rpmprob.h:30
@ RPMPROB_FILTER_NONE
Definition: rpmprob.h:22
@ RPMPROB_FILTER_REPLACENEWFILES
Definition: rpmprob.h:27
@ RPMPROB_FILTER_OLDPACKAGE
Definition: rpmprob.h:29
@ RPMPROB_FILTER_DISKNODES
Definition: rpmprob.h:31
@ RPMPROB_FILTER_REPLACEPKG
Definition: rpmprob.h:25
@ RPMPROB_FILTER_IGNOREOS
Definition: rpmprob.h:23
@ RPMPROB_FILTER_REPLACEOLDFILES
Definition: rpmprob.h:28
@ RPMPROB_CONFLICT
Definition: rpmprob.h:46
@ RPMPROB_FILE_CONFLICT
Definition: rpmprob.h:48
@ RPMPROB_PKG_INSTALLED
Definition: rpmprob.h:43
@ RPMPROB_BADRELOCATE
Definition: rpmprob.h:44
@ RPMPROB_VERIFY
Definition: rpmprob.h:53
@ RPMPROB_DISKSPACE
Definition: rpmprob.h:50
@ RPMPROB_OLDPACKAGE
Definition: rpmprob.h:49
@ RPMPROB_NEW_FILE_CONFLICT
Definition: rpmprob.h:47
@ RPMPROB_OBSOLETES
Definition: rpmprob.h:52
@ RPMPROB_BADOS
Definition: rpmprob.h:42
@ RPMPROB_REQUIRES
Definition: rpmprob.h:45
@ RPMPROB_BADARCH
Definition: rpmprob.h:41
@ RPMPROB_DISKNODES
Definition: rpmprob.h:51
uint32_t rpmFlags
Definition: rpmtypes.h:42
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
const void * fnpyKey
Definition: rpmtypes.h:76
struct rpmProblem_s * rpmProblem
Definition: rpmprob.h:16
rpmFlags rpmprobFilterFlags
Definition: rpmprob.h:35