10 #include <rpm/rpmtypes.h>
enum rpmTagClass_e rpmTagClass
The classes of data in tags from headers.
const char * rpmtdNextString(rpmtd td)
Iterate over string / string array type tag data container.
uint64_t * rpmtdGetUint64(rpmtd td)
Return uint64_t data from tag container.
rpmTagVal rpmtdTag(rpmtd td)
Retrieve tag of the container.
int rpmtdFromUint32(rpmtd td, rpmTagVal tag, uint32_t *data, rpm_count_t count)
Construct tag container from uint32_t pointer.
uint64_t * rpmtdNextUint64(rpmtd td)
Iterate over uint64_t type tag data container.
rpmtd rpmtdFree(rpmtd td)
Destroy tag data container.
int rpmtdFromStringArray(rpmtd td, rpmTagVal tag, const char **data, rpm_count_t count)
Construct tag container from a string array.
int rpmtdSetIndex(rpmtd td, int index)
Set iteration index of the container.
uint64_t rpmtdGetNumber(rpmtd td)
Return numeric value from tag container.
void rpmtdFreeData(rpmtd td)
Free contained data.
rpmtd rpmtdNew(void)
Create new tag data container.
rpmsid * rpmtdToPool(rpmtd td, rpmstrPool pool)
Push string array container contents to a string pool, return string ids.
rpmTagClass rpmtdClass(rpmtd td)
Retrieve class of the container.
int rpmtdNext(rpmtd td)
Iterate over tag data container.
int rpmtdSetTag(rpmtd td, rpmTagVal tag)
Set container tag and type.
rpm_count_t rpmtdCount(rpmtd td)
Retrieve array size of the container.
int rpmtdGetIndex(rpmtd td)
Retrieve current iteration index of the container.
int rpmtdInit(rpmtd td)
Initialize tag container for iteration.
char * rpmtdGetChar(rpmtd td)
Return char data from tag container.
int rpmtdFromUint8(rpmtd td, rpmTagVal tag, uint8_t *data, rpm_count_t count)
Construct tag container from uint8_t pointer.
char * rpmtdFormat(rpmtd td, rpmtdFormats fmt, const char *errmsg)
Format data from tag container to string presentation of given format.
const char * rpmtdGetString(rpmtd td)
Return string data from tag container.
uint32_t * rpmtdGetUint32(rpmtd td)
Return uint32_t data from tag container.
uint16_t * rpmtdGetUint16(rpmtd td)
Return uint16_t data from tag container.
int rpmtdFromArgi(rpmtd td, rpmTagVal tag, ARGI_t argi)
Construct tag container from ARGI_t array.
rpmtd rpmtdDup(rpmtd td)
Perform deep copy of container.
int rpmtdFromArgv(rpmtd td, rpmTagVal tag, ARGV_t argv)
Construct tag container from ARGV_t array.
rpm_count_t rpmtdSize(rpmtd td)
Retrieve container data size (eg required for allocation).
void rpmtdReset(rpmtd td)
(Re-)initialize tag data container.
int rpmtdFromUint64(rpmtd td, rpmTagVal tag, uint64_t *data, rpm_count_t count)
Construct tag container from uint64_t pointer.
int rpmtdFromUint16(rpmtd td, rpmTagVal tag, uint16_t *data, rpm_count_t count)
Construct tag container from uint16_t pointer.
int rpmtdFromString(rpmtd td, rpmTagVal tag, const char *data)
Construct tag container from a string.
rpmtdFlags rpmtdGetFlags(rpmtd td)
Retrieve flags of the container (allocation details etc)
rpmTagType rpmtdType(rpmtd td)
Retrieve type of the container.
uint32_t * rpmtdNextUint32(rpmtd td)
Iterate over uint32_t type tag data container.
@ RPMTD_FORMAT_TRIGGERTYPE
enum rpmtdFormats_e rpmtdFormats
struct rpmstrPool_s * rpmstrPool
Container for rpm tag data (from headers or extensions).