rpm  4.14.0
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)
23 
25 
32 
40 
47 
53 const char * rpmteN(rpmte te);
54 
60 const char * rpmteE(rpmte te);
61 
67 const char * rpmteV(rpmte te);
68 
74 const char * rpmteR(rpmte te);
75 
81 const char * rpmteA(rpmte te);
82 
88 const char * rpmteO(rpmte te);
89 
95 int rpmteIsSource(rpmte te);
96 
103 
111 
117 unsigned int rpmteDBInstance(rpmte te);
118 
125 void rpmteSetDBInstance(rpmte te, unsigned int instance);
126 
134 
141 
149 
156 
161 void rpmteCleanProblems(rpmte te);
162 
167 void rpmteCleanDS(rpmte te);
168 
174 void rpmteSetDependsOn(rpmte te, rpmte depends);
175 
182 
188 int rpmteDBOffset(rpmte te);
189 
195 const char * rpmteEVR(rpmte te);
196 
202 const char * rpmteNEVR(rpmte te);
203 
209 const char * rpmteNEVRA(rpmte te);
210 
217 
225 int rpmteFailed(rpmte te);
226 
233 rpmds rpmteDS(rpmte te, rpmTagVal tag);
234 
241 
248 rpmfi rpmteFI(rpmte te);
249 
250 #ifdef __cplusplus
251 }
252 #endif
253 
254 #endif /* H_RPMTE */
const char * rpmteV(rpmte te)
Retrieve version string of transaction element.
const char * rpmteNEVRA(rpmte te)
Retrieve name-[epoch:]version-release.arch string from transaction element.
rpmte rpmteSetParent(rpmte te, rpmte pte)
Set parent transaction element.
void rpmteSetDependsOn(rpmte te, rpmte depends)
Set dependent element of TR_REMOVED transaction element.
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
const char * rpmteN(rpmte te)
Retrieve name string of transaction element.
const char * rpmteA(rpmte te)
Retrieve arch string of transaction element.
enum rpmElementType_e rpmElementType
Transaction element type.
rpmElementType_e
Transaction element type.
Definition: rpmte.h:19
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
uint32_t rpmFlags
Definition: rpmtypes.h:42
unsigned int rpmteDBInstance(rpmte te)
Retrieve last instance installed to the database.
uint32_t rpm_color_t
Definition: rpmtypes.h:38
const char * rpmteEVR(rpmte te)
Retrieve [epoch:]version-release string from transaction element.
rpmds rpmteDS(rpmte te, rpmTagVal tag)
Retrieve dependency tag set from transaction element.
rpmfiles rpmteFiles(rpmte te)
Retrieve file info set from transaction element.
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
rpm_loff_t rpmtePkgFileSize(rpmte te)
Retrieve size in bytes of package file.
const void * fnpyKey
Definition: rpmtypes.h:75
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpm_color_t rpmteSetColor(rpmte te, rpm_color_t color)
Set color bits of transaction element.
struct rpmte_s * rpmte
Definition: rpmtypes.h:64
Definition: rpmte.h:20
Header rpmteSetHeader(rpmte te, Header h)
Save header into transaction element.
int rpmteIsSource(rpmte te)
Retrieve isSource attribute of transaction element.
rpmte rpmteDependsOn(rpmte te)
Retrieve dependent element of TR_REMOVED transaction element.
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
int rpmteFailed(rpmte te)
Return failure status of transaction element.
void rpmteCleanDS(rpmte te)
Destroy dependency set info of transaction element.
void rpmteSetDBInstance(rpmte te, unsigned int instance)
Set last instance installed to the database.
rpmte rpmteParent(rpmte te)
Retrieve parent transaction element.
const char * rpmteO(rpmte te)
Retrieve os string of transaction element.
const char * rpmteE(rpmte te)
Retrieve epoch string of transaction element.
void rpmteCleanProblems(rpmte te)
Destroy problem set info of transaction element.
rpmfi rpmteFI(rpmte te)
Retrieve file info iterator from transaction element.
rpmFlags rpmElementTypes
Definition: rpmte.h:24
rpmElementType rpmteType(rpmte te)
Retrieve type of transaction element.
Header rpmteHeader(rpmte te)
Retrieve header from transaction element.
const char * rpmteNEVR(rpmte te)
Retrieve name-[epoch:]version-release string from transaction element.
rpmps rpmteProblems(rpmte te)
Return problem set info of transaction element.
const char * rpmteR(rpmte te)
Retrieve release string of transaction element.
fnpyKey rpmteKey(rpmte te)
Retrieve key from transaction element.
int rpmteDBOffset(rpmte te)
Retrieve rpmdb instance of TR_REMOVED transaction element.
rpm_color_t rpmteColor(rpmte te)
Retrieve color bits of transaction element.
struct rpmfiles_s * rpmfiles
Definition: rpmtypes.h:67
uint64_t rpm_loff_t
Definition: rpmtypes.h:51