rpm 4.19.1.1 The RPM Package Manager

Loading...
Searching...
No Matches
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 RPMPROB_FILTER_VERIFY = (1 << 9),
33};
34
35 typedef rpmFlags rpmprobFilterFlags;
36
40 typedef enum rpmProblemType_e {
41 RPMPROB_BADARCH,
42 RPMPROB_BADOS,
43 RPMPROB_PKG_INSTALLED,
44 RPMPROB_BADRELOCATE,
45 RPMPROB_REQUIRES,
46 RPMPROB_CONFLICT,
47 RPMPROB_NEW_FILE_CONFLICT,
48 RPMPROB_FILE_CONFLICT,
49 RPMPROB_OLDPACKAGE,
50 RPMPROB_DISKSPACE,
51 RPMPROB_DISKNODES,
52 RPMPROB_OBSOLETES,
53 RPMPROB_VERIFY,
54 } rpmProblemType;
55
66rpmProblem rpmProblemCreate(rpmProblemType type,
67 const char * pkgNEVR, fnpyKey key,
68 const char * altNEVR,
69 const char * str, uint64_t number);
70
76rpmProblem rpmProblemFree(rpmProblem prob);
77
83rpmProblem rpmProblemLink(rpmProblem prob);
84
91 int rpmProblemCompare(rpmProblem ap, rpmProblem bp);
92
99 const char * rpmProblemGetPkgNEVR(rpmProblem prob);
105 const char * rpmProblemGetAltNEVR(rpmProblem prob);
106
113 rpmProblemType rpmProblemGetType(rpmProblem prob);
114
120fnpyKey rpmProblemGetKey(rpmProblem prob);
121
128 const char * rpmProblemGetStr(rpmProblem prob);
129
137rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob);
138
144 char * rpmProblemString(rpmProblem prob);
145
146#ifdef __cplusplus
147}
148#endif
149
150#endif /* _RPMPROB_H */
rpmProblemGetDiskNeed
rpm_loff_t rpmProblemGetDiskNeed(rpmProblem prob)
rpmProblemGetType
rpmProblemType rpmProblemGetType(rpmProblem prob)
rpmProblemGetAltNEVR
const char * rpmProblemGetAltNEVR(rpmProblem prob)
rpmProblemCompare
int rpmProblemCompare(rpmProblem ap, rpmProblem bp)
rpmProblemFree
rpmProblem rpmProblemFree(rpmProblem prob)
rpmProblemCreate
rpmProblem rpmProblemCreate(rpmProblemType type, const char *pkgNEVR, fnpyKey key, const char *altNEVR, const char *str, uint64_t number)
rpmProblemLink
rpmProblem rpmProblemLink(rpmProblem prob)
rpmProblemGetPkgNEVR
const char * rpmProblemGetPkgNEVR(rpmProblem prob)
rpmProblemGetStr
const char * rpmProblemGetStr(rpmProblem prob)
rpmprobFilterFlags_e
rpmprobFilterFlags_e
Definition rpmprob.h:21
rpmProblemString
char * rpmProblemString(rpmProblem prob)
rpmProblemType_e
rpmProblemType_e
Definition rpmprob.h:40
rpmProblemType
enum rpmProblemType_e rpmProblemType
rpmProblemGetKey
fnpyKey rpmProblemGetKey(rpmProblem prob)
RPMPROB_FILTER_IGNOREARCH
@ RPMPROB_FILTER_IGNOREARCH
Definition rpmprob.h:24
RPMPROB_FILTER_FORCERELOCATE
@ RPMPROB_FILTER_FORCERELOCATE
Definition rpmprob.h:26
RPMPROB_FILTER_VERIFY
@ RPMPROB_FILTER_VERIFY
Definition rpmprob.h:32
RPMPROB_FILTER_DISKSPACE
@ RPMPROB_FILTER_DISKSPACE
Definition rpmprob.h:30
RPMPROB_FILTER_REPLACENEWFILES
@ RPMPROB_FILTER_REPLACENEWFILES
Definition rpmprob.h:27
RPMPROB_FILTER_OLDPACKAGE
@ RPMPROB_FILTER_OLDPACKAGE
Definition rpmprob.h:29
RPMPROB_FILTER_DISKNODES
@ RPMPROB_FILTER_DISKNODES
Definition rpmprob.h:31
RPMPROB_FILTER_REPLACEPKG
@ RPMPROB_FILTER_REPLACEPKG
Definition rpmprob.h:25
RPMPROB_FILTER_IGNOREOS
@ RPMPROB_FILTER_IGNOREOS
Definition rpmprob.h:23
RPMPROB_FILTER_REPLACEOLDFILES
@ RPMPROB_FILTER_REPLACEOLDFILES
Definition rpmprob.h:28
RPMPROB_CONFLICT
@ RPMPROB_CONFLICT
Definition rpmprob.h:46
RPMPROB_FILE_CONFLICT
@ RPMPROB_FILE_CONFLICT
Definition rpmprob.h:48
RPMPROB_PKG_INSTALLED
@ RPMPROB_PKG_INSTALLED
Definition rpmprob.h:43
RPMPROB_BADRELOCATE
@ RPMPROB_BADRELOCATE
Definition rpmprob.h:44
RPMPROB_VERIFY
@ RPMPROB_VERIFY
Definition rpmprob.h:53
RPMPROB_DISKSPACE
@ RPMPROB_DISKSPACE
Definition rpmprob.h:50
RPMPROB_OLDPACKAGE
@ RPMPROB_OLDPACKAGE
Definition rpmprob.h:49
RPMPROB_NEW_FILE_CONFLICT
@ RPMPROB_NEW_FILE_CONFLICT
Definition rpmprob.h:47
RPMPROB_OBSOLETES
@ RPMPROB_OBSOLETES
Definition rpmprob.h:52
RPMPROB_BADOS
@ RPMPROB_BADOS
Definition rpmprob.h:42
RPMPROB_REQUIRES
@ RPMPROB_REQUIRES
Definition rpmprob.h:45
RPMPROB_BADARCH
@ RPMPROB_BADARCH
Definition rpmprob.h:41
RPMPROB_DISKNODES
@ RPMPROB_DISKNODES
Definition rpmprob.h:51
rpmtypes.h