rpm  4.17.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),
22  TR_RPMDB = (1 << 2),
24 
26 
33 
41 
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 
97 
104 
112 
118 unsigned int rpmteDBInstance(rpmte te);
119 
126 void rpmteSetDBInstance(rpmte te, unsigned int instance);
127 
135 
142 
150 
157 
163 
169 
175 void rpmteSetDependsOn(rpmte te, rpmte depends);
176 
183 
190 
196 const char * rpmteEVR(rpmte te);
197 
203 const char * rpmteNEVR(rpmte te);
204 
210 const char * rpmteNEVRA(rpmte te);
211 
218 
224 void rpmteSetUserdata(rpmte te, void *data);
225 
232 
241 
249 
256 
264 
274 
275 #ifdef __cplusplus
276 }
277 #endif
278 
279 #endif /* H_RPMTE */
void rpmteSetDependsOn(rpmte te, rpmte depends)
Set dependent element of transaction element.
rpmds rpmteDS(rpmte te, rpmTagVal tag)
Retrieve dependency tag set from transaction element.
const char * rpmteR(rpmte te)
Retrieve release string of transaction element.
const char * rpmteN(rpmte te)
Retrieve name string of transaction element.
rpmte rpmteSetParent(rpmte te, rpmte pte)
Set parent transaction element.
void rpmteCleanDS(rpmte te)
Destroy dependency set info of transaction element.
const char * rpmteEVR(rpmte te)
Retrieve [epoch:]version-release string from transaction element.
Header rpmteHeader(rpmte te)
Retrieve header from transaction element.
rpmte rpmteDependsOn(rpmte te)
Retrieve dependent element of transaction element.
rpmElementType rpmteType(rpmte te)
Retrieve type of transaction element.
rpmfiles rpmteFiles(rpmte te)
Retrieve file info set from transaction element.
enum rpmElementType_e rpmElementType
Transaction element type.
const char * rpmteE(rpmte te)
Retrieve epoch string of transaction element.
const char * rpmteNEVR(rpmte te)
Retrieve name-[epoch:]version-release string from transaction element.
rpmte rpmteParent(rpmte te)
Retrieve parent transaction element.
void rpmteCleanProblems(rpmte te)
Destroy problem set info of transaction element.
rpm_color_t rpmteColor(rpmte te)
Retrieve color bits of transaction element.
const char * rpmteO(rpmte te)
Retrieve os string of transaction element.
rpm_color_t rpmteSetColor(rpmte te, rpm_color_t color)
Set color bits of transaction element.
rpm_loff_t rpmtePkgFileSize(rpmte te)
Retrieve size in bytes of package file.
rpmps rpmteProblems(rpmte te)
Return problem set info of transaction element.
int rpmteFailed(rpmte te)
Return failure status of transaction element.
void rpmteSetDBInstance(rpmte te, unsigned int instance)
Set last instance installed to the database.
rpmElementType_e
Transaction element type.
Definition: rpmte.h:19
const char * rpmteA(rpmte te)
Retrieve arch string of transaction element.
const char * rpmteV(rpmte te)
Retrieve version string of transaction element.
int rpmteDBOffset(rpmte te)
Retrieve rpmdb instance of transaction element.
int rpmteIsSource(rpmte te)
Retrieve isSource attribute of transaction element.
unsigned int rpmteDBInstance(rpmte te)
Retrieve last instance installed to the database.
fnpyKey rpmteKey(rpmte te)
Retrieve key from transaction element.
int rpmteVerified(rpmte te)
Retrieve verification status from transaction element.
void * rpmteUserdata(rpmte te)
Retrieve private user data of transaction element.
void rpmteSetUserdata(rpmte te, void *data)
Set private user data of transaction element.
rpmfi rpmteFI(rpmte te)
Retrieve file info iterator from transaction element.
Header rpmteSetHeader(rpmte te, Header h)
Save header into transaction element.
const char * rpmteNEVRA(rpmte te)
Retrieve name-[epoch:]version-release.arch string from transaction element.
@ TR_ADDED
Definition: rpmte.h:20
@ TR_REMOVED
Definition: rpmte.h:21
@ TR_RPMDB
Definition: rpmte.h:22
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
struct rpmte_s * rpmte
Definition: rpmtypes.h:64
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
struct rpmfiles_s * rpmfiles
Definition: rpmtypes.h:67
uint32_t rpmFlags
Definition: rpmtypes.h:42
uint32_t rpm_color_t
Definition: rpmtypes.h:38
struct rpmps_s * rpmps
Definition: rpmtypes.h:71
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
const void * fnpyKey
Definition: rpmtypes.h:76
rpmFlags rpmElementTypes
Definition: rpmte.h:25