rpm  4.12.0.1
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 };
33 
35 
39 typedef enum rpmProblemType_e {
53 
64 rpmProblem rpmProblemCreate(rpmProblemType type,
65  const char * pkgNEVR, fnpyKey key,
66  const char * altNEVR,
67  const char * str, uint64_t number);
68 
74 rpmProblem rpmProblemFree(rpmProblem prob);
75 
81 rpmProblem rpmProblemLink(rpmProblem prob);
82 
89 int rpmProblemCompare(rpmProblem ap, rpmProblem bp);
90 
97 const char * rpmProblemGetPkgNEVR(rpmProblem prob);
103 const char * rpmProblemGetAltNEVR(rpmProblem prob);
104 
111 rpmProblemType rpmProblemGetType(rpmProblem prob);
112 
118 fnpyKey rpmProblemGetKey(rpmProblem prob);
119 
126 const char * rpmProblemGetStr(rpmProblem prob);
127 
135 rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob);
136 
142 char * rpmProblemString(rpmProblem prob);
143 
144 #ifdef __cplusplus
145 }
146 #endif
147 
148 #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:34
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:39
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