rpm  4.15.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 
144 char * rpmProblemString(rpmProblem prob);
145 
146 #ifdef __cplusplus
147 }
148 #endif
149 
150 #endif /* _RPMPROB_H */
enum rpmProblemType_e rpmProblemType
Enumerate transaction set problem types.
rpmProblem rpmProblemCreate(rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *altNEVR, const char *str, uint64_t number)
Create a problem item.
rpmFlags rpmprobFilterFlags
Definition: rpmprob.h:35
const char * rpmProblemGetStr(rpmProblem prob)
Return a generic data string from a problem.
rpmprobFilterFlags_e
Definition: rpmprob.h:21
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmProblem rpmProblemFree(rpmProblem prob)
Destroy a problem item.
const char * rpmProblemGetPkgNEVR(rpmProblem prob)
Return package NEVR.
rpmProblemType_e
Enumerate transaction set problem types.
Definition: rpmprob.h:40
rpmProblemType rpmProblemGetType(rpmProblem prob)
Return type of problem (dependency, diskpace etc)
struct rpmProblem_s * rpmProblem
Definition: rpmprob.h:16
rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob)
Return disk requirement (needed disk space / number of inodes) depending on problem type.
const void * fnpyKey
Definition: rpmtypes.h:75
rpmProblem rpmProblemLink(rpmProblem prob)
Reference an rpmProblem instance.
int rpmProblemCompare(rpmProblem ap, rpmProblem bp)
Compare two problems for equality.
char * rpmProblemString(rpmProblem prob)
Return formatted string representation of a problem.
const char * rpmProblemGetAltNEVR(rpmProblem prob)
Return related (e.g.
fnpyKey rpmProblemGetKey(rpmProblem prob)
Return filename or python object address of a problem.
uint64_t rpm_loff_t
Definition: rpmtypes.h:51