rpm 5.3.12
Defines | Typedefs | Enumerations | Functions | Variables

Structures used for an "rpmte" transaction element. More...

#include <rpmfi.h>
Include dependency graph for rpmte.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define rpmteFree(_te)   ((rpmte) rpmioFreePoolItem((rpmioItem)(_te), __FUNCTION__, __FILE__, __LINE__))
#define RPMTE_CHAIN_END   "CHAIN END"
#define rpmtsiFree(_tsi)   ((rpmtsi)rpmioFreePoolItem((rpmioItem)(_tsi), __FUNCTION__, __FILE__, __LINE__))
#define rpmtsiInit(_ts)   XrpmtsiInit(_ts, __FILE__, __LINE__)

Typedefs

typedef struct tsortInfo_s * tsortInfo
 Transaction element ordering chain linkage.
typedef struct rpmtsi_s * rpmtsi
 Transaction element iterator.
typedef enum rpmElementType_e rpmElementType
 Transaction element type.

Enumerations

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

Functions

rpmte rpmteFree (rpmte te)
 Destroy a transaction element.
rpmte rpmteNew (const rpmts ts, Header h, rpmElementType type, fnpyKey key, rpmRelocation relocs, uint32_t dboffset, alKey pkgKey)
 Create a transaction element.
Header rpmteHeader (rpmte te)
 Retrieve header from transaction element.
Header rpmteSetHeader (rpmte te, Header h)
 Save header into transaction element.
rpmElementType rpmteType (rpmte te)
 Retrieve type of transaction element.
const char * rpmteN (rpmte te)
 Retrieve name string of transaction element.
const char * rpmteE (rpmte te)
 Retrieve epoch string of transaction element.
const char * rpmteV (rpmte te)
 Retrieve version string of transaction element.
const char * rpmteR (rpmte te)
 Retrieve release string of transaction element.
const char * rpmteD (rpmte te)
 Retrieve distepoch string of transaction element.
const char * rpmteA (rpmte te)
 Retrieve arch string of transaction element.
const char * rpmteO (rpmte te)
 Retrieve os string of transaction element.
int rpmteIsSource (rpmte te)
 Retrieve isSource attribute of transaction element.
rpmuint32_t rpmteColor (rpmte te)
 Retrieve color bits of transaction element.
rpmuint32_t rpmteSetColor (rpmte te, rpmuint32_t color)
 Set color bits of transaction element.
uint32_t rpmteDBInstance (rpmte te)
 Retrieve last instance installed to the database.
void rpmteSetDBInstance (rpmte te, unsigned int instance)
 Set last instance installed to the database.
rpmuint32_t rpmtePkgFileSize (rpmte te)
 Retrieve size in bytes of package file.
rpmuint32_trpmteOriginTid (rpmte te)
 Retrieve transaction start time that package was first installed.
rpmuint32_trpmteOriginTime (rpmte te)
 Retrieve time that package was first installed.
int rpmteDepth (rpmte te)
 Retrieve dependency tree depth of transaction element.
int rpmteSetDepth (rpmte te, int ndepth)
 Set dependency tree depth of transaction element.
int rpmteBreadth (rpmte te)
 Retrieve dependency tree breadth of transaction element.
int rpmteSetBreadth (rpmte te, int nbreadth)
 Set dependency tree breadth of transaction element.
int rpmteNpreds (rpmte te)
 Retrieve tsort no.
int rpmteSetNpreds (rpmte te, int npreds)
 Set tsort no.
int rpmteTree (rpmte te)
 Retrieve tree index of transaction element.
int rpmteSetTree (rpmte te, int ntree)
 Set tree index of transaction element.
rpmte rpmteParent (rpmte te)
 Retrieve parent transaction element.
rpmte rpmteSetParent (rpmte te, rpmte pte)
 Set parent transaction element.
int rpmteDegree (rpmte te)
 Retrieve number of children of transaction element.
int rpmteSetDegree (rpmte te, int ndegree)
 Set number of children of transaction element.
tsortInfo rpmteTSI (rpmte te)
 Retrieve tsort info for transaction element.
void rpmteFreeTSI (rpmte te)
 Destroy tsort info of transaction element.
void rpmteNewTSI (rpmte te)
 Initialize tsort info of transaction element.
void rpmteCleanDS (rpmte te)
 Destroy dependency set info of transaction element.
int rpmteDBOffset (rpmte te)
 Retrieve rpmdb instance of TR_REMOVED transaction element.
const char * rpmteNEVR (rpmte te)
 Retrieve name-version-release string from transaction element.
const char * rpmteNEVRA (rpmte te)
 Retrieve name-version-release.arch string from transaction element.
const char * rpmtePkgid (rpmte te)
 Retrieve pkgid string from transaction element.
const char * rpmteHdrid (rpmte te)
 Retrieve hdrid string from transaction element.
const char * rpmteSourcerpm (rpmte te)
 Retrieve sourcerpm string from transaction element.
FD_t rpmteFd (rpmte te)
 Retrieve file handle from transaction element.
fnpyKey rpmteKey (rpmte te)
 Retrieve key from transaction element.
rpmds rpmteDS (rpmte te, rpmTag tag)
 Retrieve dependency tag set from transaction element.
rpmfi rpmteFI (rpmte te, rpmTag tag)
 Retrieve file info tag set from transaction element.
rpmfi rpmteSetFI (rpmte te, rpmfi fi)
void rpmteColorDS (rpmte te, rpmTag tag)
 Calculate transaction element dependency colors/refs from file info.
int rpmteChain (rpmte p, rpmte q, Header oh, const char *msg)
 Chain p <-> q forward/backward transaction element links.
int rpmtsiOc (rpmtsi tsi)
 Return transaction element index.
rpmtsi rpmtsiFree (rpmtsi tsi)
 Destroy transaction element iterator.
rpmtsi rpmtsiInit (rpmts ts)
 Create transaction element iterator.
rpmtsi XrpmtsiInit (rpmts ts, const char *fn, unsigned int ln)
 Create transaction element iterator.
rpmte rpmtsiNext (rpmtsi tsi, rpmElementType type)
 Return next transaction element of type.

Variables

int _rpmte_debug

Detailed Description

Structures used for an "rpmte" transaction element.

Definition in file rpmte.h.


Define Documentation

#define RPMTE_CHAIN_END   "CHAIN END"

End of chain marker.

Definition at line 708 of file rpmte.h.

Referenced by findErases(), hSaveBlinks(), and hSaveFlinks().

#define rpmteFree (   _te)    ((rpmte) rpmioFreePoolItem((rpmioItem)(_te), __FUNCTION__, __FILE__, __LINE__))

Definition at line 251 of file rpmte.h.

#define rpmtsiFree (   _tsi)    ((rpmtsi)rpmioFreePoolItem((rpmioItem)(_tsi), __FUNCTION__, __FILE__, __LINE__))

Definition at line 727 of file rpmte.h.

#define rpmtsiInit (   _ts)    XrpmtsiInit(_ts, __FILE__, __LINE__)

Definition at line 750 of file rpmte.h.


Function Documentation

rpmfi rpmteSetFI ( rpmte  te,
rpmfi  fi 
)

Definition at line 595 of file rpmte.c.

References rpmfiFree(), and rpmfiLink().

Referenced by rpmteClose(), and rpmtsPrepare().


Variable Documentation

Definition at line 26 of file rpmte.c.