rpm  4.16.1.2
Files | Typedefs | Enumerations | Functions
Transaction Element API.

How to retrieve information from a transaction element. More...

Collaboration diagram for Transaction Element API.:

Files

file  rpmte.h
 Structures used for an "rpmte" transaction element.
 

Typedefs

typedef enum rpmElementType_e rpmElementType
 Transaction element type. More...
 

Enumerations

enum  rpmElementType_e { TR_ADDED = (1 << 0), TR_REMOVED = (1 << 1), TR_RPMDB = (1 << 2) }
 Transaction element type. More...
 

Functions

Header rpmteHeader (rpmte te)
 Retrieve header from transaction element. More...
 
Header rpmteSetHeader (rpmte te, Header h)
 Save header into transaction element. More...
 
rpmElementType rpmteType (rpmte te)
 Retrieve type of transaction element. More...
 
const char * rpmteN (rpmte te)
 Retrieve name string of transaction element. More...
 
const char * rpmteE (rpmte te)
 Retrieve epoch string of transaction element. More...
 
const char * rpmteV (rpmte te)
 Retrieve version string of transaction element. More...
 
const char * rpmteR (rpmte te)
 Retrieve release string of transaction element. More...
 
const char * rpmteA (rpmte te)
 Retrieve arch string of transaction element. More...
 
const char * rpmteO (rpmte te)
 Retrieve os string of transaction element. More...
 
int rpmteIsSource (rpmte te)
 Retrieve isSource attribute of transaction element. More...
 
rpm_color_t rpmteColor (rpmte te)
 Retrieve color bits of transaction element. More...
 
rpm_color_t rpmteSetColor (rpmte te, rpm_color_t color)
 Set color bits of transaction element. More...
 
unsigned int rpmteDBInstance (rpmte te)
 Retrieve last instance installed to the database. More...
 
void rpmteSetDBInstance (rpmte te, unsigned int instance)
 Set last instance installed to the database. More...
 
rpm_loff_t rpmtePkgFileSize (rpmte te)
 Retrieve size in bytes of package file. More...
 
rpmte rpmteParent (rpmte te)
 Retrieve parent transaction element. More...
 
rpmte rpmteSetParent (rpmte te, rpmte pte)
 Set parent transaction element. More...
 
rpmps rpmteProblems (rpmte te)
 Return problem set info of transaction element. More...
 
void rpmteCleanProblems (rpmte te)
 Destroy problem set info of transaction element. More...
 
void rpmteCleanDS (rpmte te)
 Destroy dependency set info of transaction element. More...
 
void rpmteSetDependsOn (rpmte te, rpmte depends)
 Set dependent element of transaction element. More...
 
rpmte rpmteDependsOn (rpmte te)
 Retrieve dependent element of transaction element. More...
 
int rpmteDBOffset (rpmte te)
 Retrieve rpmdb instance of transaction element. More...
 
const char * rpmteEVR (rpmte te)
 Retrieve [epoch:]version-release string from transaction element. More...
 
const char * rpmteNEVR (rpmte te)
 Retrieve name-[epoch:]version-release string from transaction element. More...
 
const char * rpmteNEVRA (rpmte te)
 Retrieve name-[epoch:]version-release.arch string from transaction element. More...
 
fnpyKey rpmteKey (rpmte te)
 Retrieve key from transaction element. More...
 
int rpmteFailed (rpmte te)
 Return failure status of transaction element. More...
 
rpmds rpmteDS (rpmte te, rpmTagVal tag)
 Retrieve dependency tag set from transaction element. More...
 
rpmfiles rpmteFiles (rpmte te)
 Retrieve file info set from transaction element. More...
 
rpmfi rpmteFI (rpmte te)
 Retrieve file info iterator from transaction element. More...
 
int rpmteVerified (rpmte te)
 Retrieve verification status from transaction element. More...
 
rpmtsi rpmtsiFree (rpmtsi tsi)
 Destroy transaction element iterator. More...
 
rpmtsi rpmtsiInit (rpmts ts)
 Create transaction element iterator. More...
 
rpmte rpmtsiNext (rpmtsi tsi, rpmElementTypes types)
 Return next transaction element of type. More...
 

Detailed Description

How to retrieve information from a transaction element.

Typedef Documentation

◆ rpmElementType

Transaction element type.

Enumeration Type Documentation

◆ rpmElementType_e

Transaction element type.

Enumerator
TR_ADDED 

Package will be installed.

TR_REMOVED 

Package will be removed.

TR_RPMDB 

Package from the rpmdb.

Definition at line 19 of file rpmte.h.

Function Documentation

◆ rpmteA()

const char* rpmteA ( rpmte  te)

Retrieve arch string of transaction element.

Parameters
tetransaction element
Returns
arch string

◆ rpmteCleanDS()

void rpmteCleanDS ( rpmte  te)

Destroy dependency set info of transaction element.

Parameters
tetransaction element

◆ rpmteCleanProblems()

void rpmteCleanProblems ( rpmte  te)

Destroy problem set info of transaction element.

Parameters
tetransaction element

◆ rpmteColor()

rpm_color_t rpmteColor ( rpmte  te)

Retrieve color bits of transaction element.

Parameters
tetransaction element
Returns
color bits

◆ rpmteDBInstance()

unsigned int rpmteDBInstance ( rpmte  te)

Retrieve last instance installed to the database.

Parameters
tetransaction element
Returns
last install instance.

◆ rpmteDBOffset()

int rpmteDBOffset ( rpmte  te)

Retrieve rpmdb instance of transaction element.

Parameters
tetransaction element
Returns
rpmdb instance (0 if not installed))

◆ rpmteDependsOn()

rpmte rpmteDependsOn ( rpmte  te)

Retrieve dependent element of transaction element.

Parameters
tetransaction element
Returns
dependent transaction element

◆ rpmteDS()

rpmds rpmteDS ( rpmte  te,
rpmTagVal  tag 
)

Retrieve dependency tag set from transaction element.

Parameters
tetransaction element
tagdependency tag
Returns
dependency tag set

◆ rpmteE()

const char* rpmteE ( rpmte  te)

Retrieve epoch string of transaction element.

Parameters
tetransaction element
Returns
epoch string

◆ rpmteEVR()

const char* rpmteEVR ( rpmte  te)

Retrieve [epoch:]version-release string from transaction element.

Parameters
tetransaction element
Returns
[epoch:]version-release string

◆ rpmteFailed()

int rpmteFailed ( rpmte  te)

Return failure status of transaction element.

If the element itself failed, this is 1, larger count means one of it's parents failed.

Parameters
tetransaction element
Returns
number of failures for this transaction element

◆ rpmteFI()

rpmfi rpmteFI ( rpmte  te)

Retrieve file info iterator from transaction element.

Deprecated:
use rpmteFiles() instead
Parameters
tetransaction element
Returns
file info tag set

◆ rpmteFiles()

rpmfiles rpmteFiles ( rpmte  te)

Retrieve file info set from transaction element.

Parameters
tetransaction element
Returns
file info set (refcounted)

◆ rpmteHeader()

Header rpmteHeader ( rpmte  te)

Retrieve header from transaction element.

Parameters
tetransaction element
Returns
header (new reference)

◆ rpmteIsSource()

int rpmteIsSource ( rpmte  te)

Retrieve isSource attribute of transaction element.

Parameters
tetransaction element
Returns
isSource attribute

◆ rpmteKey()

fnpyKey rpmteKey ( rpmte  te)

Retrieve key from transaction element.

Parameters
tetransaction element
Returns
key

◆ rpmteN()

const char* rpmteN ( rpmte  te)

Retrieve name string of transaction element.

Parameters
tetransaction element
Returns
name string

◆ rpmteNEVR()

const char* rpmteNEVR ( rpmte  te)

Retrieve name-[epoch:]version-release string from transaction element.

Parameters
tetransaction element
Returns
name-[epoch:]version-release string

◆ rpmteNEVRA()

const char* rpmteNEVRA ( rpmte  te)

Retrieve name-[epoch:]version-release.arch string from transaction element.

Parameters
tetransaction element
Returns
name-[epoch:]version-release.arch string

◆ rpmteO()

const char* rpmteO ( rpmte  te)

Retrieve os string of transaction element.

Parameters
tetransaction element
Returns
os string

◆ rpmteParent()

rpmte rpmteParent ( rpmte  te)

Retrieve parent transaction element.

Parameters
tetransaction element
Returns
parent transaction element

◆ rpmtePkgFileSize()

rpm_loff_t rpmtePkgFileSize ( rpmte  te)

Retrieve size in bytes of package file.

Todo:
Signature header is estimated at 256b.
Parameters
tetransaction element
Returns
size in bytes of package file.

◆ rpmteProblems()

rpmps rpmteProblems ( rpmte  te)

Return problem set info of transaction element.

Parameters
tetransaction element
Returns
problem set (or NULL if none)

◆ rpmteR()

const char* rpmteR ( rpmte  te)

Retrieve release string of transaction element.

Parameters
tetransaction element
Returns
release string

◆ rpmteSetColor()

rpm_color_t rpmteSetColor ( rpmte  te,
rpm_color_t  color 
)

Set color bits of transaction element.

Parameters
tetransaction element
colornew color bits
Returns
previous color bits

◆ rpmteSetDBInstance()

void rpmteSetDBInstance ( rpmte  te,
unsigned int  instance 
)

Set last instance installed to the database.

Parameters
tetransaction element
instanceDatabase instance of last install element.
Returns
last install instance.

◆ rpmteSetDependsOn()

void rpmteSetDependsOn ( rpmte  te,
rpmte  depends 
)

Set dependent element of transaction element.

Parameters
tetransaction element
dependsdependent transaction element

◆ rpmteSetHeader()

Header rpmteSetHeader ( rpmte  te,
Header  h 
)

Save header into transaction element.

Parameters
tetransaction element
hheader
Returns
NULL always

◆ rpmteSetParent()

rpmte rpmteSetParent ( rpmte  te,
rpmte  pte 
)

Set parent transaction element.

Parameters
tetransaction element
ptenew parent transaction element
Returns
previous parent transaction element

◆ rpmteType()

rpmElementType rpmteType ( rpmte  te)

Retrieve type of transaction element.

Parameters
tetransaction element
Returns
type

◆ rpmteV()

const char* rpmteV ( rpmte  te)

Retrieve version string of transaction element.

Parameters
tetransaction element
Returns
version string

◆ rpmteVerified()

int rpmteVerified ( rpmte  te)

Retrieve verification status from transaction element.

Returns RPMSIG_UNVERIFIED_TYPE if no verify has been attempted, otherwise RPMSIG_SIGNATURE_TYPE and RPMSIG_DIGEST_TYPE bits will be set if that type of verification was successfully performed.

Parameters
tetransaction element
Returns
verification status

◆ rpmtsiFree()

rpmtsi rpmtsiFree ( rpmtsi  tsi)

Destroy transaction element iterator.

Parameters
tsitransaction element iterator
Returns
NULL always

◆ rpmtsiInit()

rpmtsi rpmtsiInit ( rpmts  ts)

Create transaction element iterator.

Parameters
tstransaction set
Returns
transaction element iterator

◆ rpmtsiNext()

rpmte rpmtsiNext ( rpmtsi  tsi,
rpmElementTypes  types 
)

Return next transaction element of type.

Parameters
tsitransaction element iterator
typestransaction element type selector (0 for any)
Returns
next transaction element of type, NULL on termination