rpm: rpmprob.h Source File

rpm 4.12.0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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
21 enum rpmprobFilterFlags_e {
22 RPMPROB_FILTER_NONE = 0,
23 RPMPROB_FILTER_IGNOREOS = (1 << 0),
24 RPMPROB_FILTER_IGNOREARCH = (1 << 1),
25 RPMPROB_FILTER_REPLACEPKG = (1 << 2),
26 RPMPROB_FILTER_FORCERELOCATE= (1 << 3),
27 RPMPROB_FILTER_REPLACENEWFILES= (1 << 4),
28 RPMPROB_FILTER_REPLACEOLDFILES= (1 << 5),
29 RPMPROB_FILTER_OLDPACKAGE = (1 << 6),
30 RPMPROB_FILTER_DISKSPACE = (1 << 7),
31 RPMPROB_FILTER_DISKNODES = (1 << 8)
32 };
33
34 typedef rpmFlags rpmprobFilterFlags;
35
39 typedef enum rpmProblemType_e {
40 RPMPROB_BADARCH,
41 RPMPROB_BADOS,
42 RPMPROB_PKG_INSTALLED,
43 RPMPROB_BADRELOCATE,
44 RPMPROB_REQUIRES,
45 RPMPROB_CONFLICT,
46 RPMPROB_NEW_FILE_CONFLICT,
47 RPMPROB_FILE_CONFLICT,
48 RPMPROB_OLDPACKAGE,
49 RPMPROB_DISKSPACE,
50 RPMPROB_DISKNODES,
51 RPMPROB_OBSOLETES,
52 } rpmProblemType;
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 */
RPMPROB_OBSOLETES
Definition: rpmprob.h:51
RPMPROB_BADARCH
Definition: rpmprob.h:40
rpmProblemType
enum rpmProblemType_e rpmProblemType
Enumerate transaction set problem types.
RPMPROB_NEW_FILE_CONFLICT
Definition: rpmprob.h:46
RPMPROB_FILTER_DISKNODES
Definition: rpmprob.h:31
RPMPROB_DISKNODES
Definition: rpmprob.h:50
RPMPROB_FILTER_REPLACEPKG
Definition: rpmprob.h:25
RPMPROB_BADOS
Definition: rpmprob.h:41
rpmProblemCreate
rpmProblem rpmProblemCreate(rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *altNEVR, const char *str, uint64_t number)
Create a problem item.
RPMPROB_FILTER_REPLACENEWFILES
Definition: rpmprob.h:27
rpmprobFilterFlags
rpmFlags rpmprobFilterFlags
Definition: rpmprob.h:34
rpmProblemGetStr
const char * rpmProblemGetStr(rpmProblem prob)
Return a generic data string from a problem.
RPMPROB_DISKSPACE
Definition: rpmprob.h:49
rpmprobFilterFlags_e
rpmprobFilterFlags_e
Definition: rpmprob.h:21
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
RPMPROB_FILTER_DISKSPACE
Definition: rpmprob.h:30
RPMPROB_BADRELOCATE
Definition: rpmprob.h:43
rpmProblemFree
rpmProblem rpmProblemFree(rpmProblem prob)
Destroy a problem item.
rpmProblemGetPkgNEVR
const char * rpmProblemGetPkgNEVR(rpmProblem prob)
Return package NEVR.
rpmProblemType_e
rpmProblemType_e
Enumerate transaction set problem types.
Definition: rpmprob.h:39
rpmProblemGetType
rpmProblemType rpmProblemGetType(rpmProblem prob)
Return type of problem (dependency, diskpace etc)
rpmProblem
struct rpmProblem_s * rpmProblem
Definition: rpmprob.h:16
RPMPROB_FILTER_OLDPACKAGE
Definition: rpmprob.h:29
rpmProblemGetDiskNeed
rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob)
Return disk requirement (needed disk space / number of inodes) depending on problem type...
RPMPROB_OLDPACKAGE
Definition: rpmprob.h:48
fnpyKey
const void * fnpyKey
Definition: rpmtypes.h:75
rpmProblemLink
rpmProblem rpmProblemLink(rpmProblem prob)
Reference an rpmProblem instance.
rpmProblemCompare
int rpmProblemCompare(rpmProblem ap, rpmProblem bp)
Compare two problems for equality.
RPMPROB_FILTER_REPLACEOLDFILES
Definition: rpmprob.h:28
RPMPROB_FILTER_IGNOREOS
Definition: rpmprob.h:23
rpmProblemString
char * rpmProblemString(rpmProblem prob)
Return formatted string representation of a problem.
RPMPROB_PKG_INSTALLED
Definition: rpmprob.h:42
RPMPROB_FILE_CONFLICT
Definition: rpmprob.h:47
RPMPROB_FILTER_FORCERELOCATE
Definition: rpmprob.h:26
rpmProblemGetAltNEVR
const char * rpmProblemGetAltNEVR(rpmProblem prob)
Return related (e.g.
RPMPROB_FILTER_NONE
Definition: rpmprob.h:22
rpmProblemGetKey
fnpyKey rpmProblemGetKey(rpmProblem prob)
Return filename or python object address of a problem.
RPMPROB_CONFLICT
Definition: rpmprob.h:45
RPMPROB_REQUIRES
Definition: rpmprob.h:44
RPMPROB_FILTER_IGNOREARCH
Definition: rpmprob.h:24
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51