rpm: rpmte.h Source File

rpm 4.16.1.3

rpmte.h
Go to the documentation of this file.
1 #ifndef H_RPMTE
2 #define H_RPMTE
3
9 #include <rpm/rpmtypes.h>
10 #include <rpm/argv.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
19 typedef enum rpmElementType_e {
20 TR_ADDED = (1 << 0),
21 TR_REMOVED = (1 << 1),
22 TR_RPMDB = (1 << 2),
23 } rpmElementType;
24
25 typedef rpmFlags rpmElementTypes;
26
32 Header rpmteHeader(rpmte te);
33
40 Header rpmteSetHeader(rpmte te, Header h);
41
47 rpmElementType rpmteType(rpmte te);
48
54 const char * rpmteN(rpmte te);
55
61 const char * rpmteE(rpmte te);
62
68 const char * rpmteV(rpmte te);
69
75 const char * rpmteR(rpmte te);
76
82 const char * rpmteA(rpmte te);
83
89 const char * rpmteO(rpmte te);
90
96 int rpmteIsSource(rpmte te);
97
103 rpm_color_t rpmteColor(rpmte te);
104
111 rpm_color_t rpmteSetColor(rpmte te, rpm_color_t color);
112
118 unsigned int rpmteDBInstance(rpmte te);
119
126 void rpmteSetDBInstance(rpmte te, unsigned int instance);
127
134 rpm_loff_t rpmtePkgFileSize(rpmte te);
135
141 rpmte rpmteParent(rpmte te);
142
149 rpmte rpmteSetParent(rpmte te, rpmte pte);
150
156 rpmps rpmteProblems(rpmte te);
157
162 void rpmteCleanProblems(rpmte te);
163
168 void rpmteCleanDS(rpmte te);
169
175 void rpmteSetDependsOn(rpmte te, rpmte depends);
176
182 rpmte rpmteDependsOn(rpmte te);
183
189 int rpmteDBOffset(rpmte te);
190
196 const char * rpmteEVR(rpmte te);
197
203 const char * rpmteNEVR(rpmte te);
204
210 const char * rpmteNEVRA(rpmte te);
211
217 fnpyKey rpmteKey(rpmte te);
218
226 int rpmteFailed(rpmte te);
227
234 rpmds rpmteDS(rpmte te, rpmTagVal tag);
235
241 rpmfiles rpmteFiles(rpmte te);
242
249 rpmfi rpmteFI(rpmte te);
250
259 int rpmteVerified(rpmte te);
260
261 #ifdef __cplusplus
262 }
263 #endif
264
265 #endif /* H_RPMTE */
rpmteFI
rpmfi rpmteFI(rpmte te)
Retrieve file info iterator from transaction element.
rpmteKey
fnpyKey rpmteKey(rpmte te)
Retrieve key from transaction element.
rpmteParent
rpmte rpmteParent(rpmte te)
Retrieve parent transaction element.
rpmps
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmtePkgFileSize
rpm_loff_t rpmtePkgFileSize(rpmte te)
Retrieve size in bytes of package file.
rpmteA
const char * rpmteA(rpmte te)
Retrieve arch string of transaction element.
rpmteProblems
rpmps rpmteProblems(rpmte te)
Return problem set info of transaction element.
rpmElementType_e
rpmElementType_e
Transaction element type.
Definition: rpmte.h:19
rpmteCleanDS
void rpmteCleanDS(rpmte te)
Destroy dependency set info of transaction element.
rpmfiles
struct rpmfiles_s * rpmfiles
Definition: rpmtypes.h:67
rpmElementType
enum rpmElementType_e rpmElementType
Transaction element type.
rpmteO
const char * rpmteO(rpmte te)
Retrieve os string of transaction element.
TR_REMOVED
@ TR_REMOVED
Definition: rpmte.h:21
rpmteNEVR
const char * rpmteNEVR(rpmte te)
Retrieve name-[epoch:]version-release string from transaction element.
rpmteSetHeader
Header rpmteSetHeader(rpmte te, Header h)
Save header into transaction element.
rpmteIsSource
int rpmteIsSource(rpmte te)
Retrieve isSource attribute of transaction element.
rpmteR
const char * rpmteR(rpmte te)
Retrieve release string of transaction element.
rpmteSetDependsOn
void rpmteSetDependsOn(rpmte te, rpmte depends)
Set dependent element of transaction element.
rpmteEVR
const char * rpmteEVR(rpmte te)
Retrieve [epoch:]version-release string from transaction element.
TR_ADDED
@ TR_ADDED
Definition: rpmte.h:20
rpm_color_t
uint32_t rpm_color_t
Definition: rpmtypes.h:38
rpmfi
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
rpmteDBInstance
unsigned int rpmteDBInstance(rpmte te)
Retrieve last instance installed to the database.
rpmElementTypes
rpmFlags rpmElementTypes
Definition: rpmte.h:25
rpmteFailed
int rpmteFailed(rpmte te)
Return failure status of transaction element.
rpmteFiles
rpmfiles rpmteFiles(rpmte te)
Retrieve file info set from transaction element.
rpmteDS
rpmds rpmteDS(rpmte te, rpmTagVal tag)
Retrieve dependency tag set from transaction element.
rpmteCleanProblems
void rpmteCleanProblems(rpmte te)
Destroy problem set info of transaction element.
rpmteDBOffset
int rpmteDBOffset(rpmte te)
Retrieve rpmdb instance of transaction element.
rpmte
struct rpmte_s * rpmte
Definition: rpmtypes.h:64
rpmteV
const char * rpmteV(rpmte te)
Retrieve version string of transaction element.
rpmteE
const char * rpmteE(rpmte te)
Retrieve epoch string of transaction element.
TR_RPMDB
@ TR_RPMDB
Definition: rpmte.h:22
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmds
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
fnpyKey
const void * fnpyKey
Definition: rpmtypes.h:76
rpmteNEVRA
const char * rpmteNEVRA(rpmte te)
Retrieve name-[epoch:]version-release.arch string from transaction element.
rpmteSetColor
rpm_color_t rpmteSetColor(rpmte te, rpm_color_t color)
Set color bits of transaction element.
rpmteVerified
int rpmteVerified(rpmte te)
Retrieve verification status from transaction element.
Header
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
rpmteDependsOn
rpmte rpmteDependsOn(rpmte te)
Retrieve dependent element of transaction element.
rpmteSetParent
rpmte rpmteSetParent(rpmte te, rpmte pte)
Set parent transaction element.
rpmteN
const char * rpmteN(rpmte te)
Retrieve name string of transaction element.
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmteColor
rpm_color_t rpmteColor(rpmte te)
Retrieve color bits of transaction element.
rpmteSetDBInstance
void rpmteSetDBInstance(rpmte te, unsigned int instance)
Set last instance installed to the database.
rpmteHeader
Header rpmteHeader(rpmte te)
Retrieve header from transaction element.
rpmteType
rpmElementType rpmteType(rpmte te)
Retrieve type of transaction element.