rpm 4.11.90

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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