rpmte.h
Go to the documentation of this file.
#ifndef H_RPMTE
#define H_RPMTE
#include <rpm/rpmtypes.h>
#include <rpm/argv.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum rpmElementType_e {
TR_ADDED = (1 << 0),
TR_REMOVED = (1 << 1)
} rpmElementType;
typedef rpmFlags rpmElementTypes;
Header rpmteHeader(rpmte te);
Header rpmteSetHeader(rpmte te, Header h);
rpmElementType rpmteType(rpmte te);
const char * rpmteN(rpmte te);
const char * rpmteE(rpmte te);
const char * rpmteV(rpmte te);
const char * rpmteR(rpmte te);
const char * rpmteA(rpmte te);
const char * rpmteO(rpmte te);
int rpmteIsSource(rpmte te);
rpm_color_t rpmteColor(rpmte te);
rpm_color_t rpmteSetColor(rpmte te, rpm_color_t color);
unsigned int rpmteDBInstance(rpmte te);
void rpmteSetDBInstance(rpmte te, unsigned int instance);
rpm_loff_t rpmtePkgFileSize(rpmte te);
rpmte rpmteParent(rpmte te);
rpmte rpmteSetParent(rpmte te, rpmte pte);
rpmps rpmteProblems(rpmte te);
void rpmteCleanProblems(rpmte te);
void rpmteCleanDS(rpmte te);
void rpmteSetDependsOn(rpmte te, rpmte depends);
rpmte rpmteDependsOn(rpmte te);
int rpmteDBOffset(rpmte te);
const char * rpmteEVR(rpmte te);
const char * rpmteNEVR(rpmte te);
const char * rpmteNEVRA(rpmte te);
fnpyKey rpmteKey(rpmte te);
int rpmteFailed(rpmte te);
rpmds rpmteDS(rpmte te, rpmTagVal tag);
rpmfiles rpmteFiles(rpmte te);
rpmfi rpmteFI(rpmte te);
#ifdef __cplusplus
}
#endif
#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