rpm
4.11.1-rc1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
lib
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 */
Generated by
1.8.3.1