4 #include <rpm/rpmtypes.h>
uint64_t * rpmtdNextUint64(rpmtd td)
Iterate over uint64_t type tag data container.
uint16_t * rpmtdGetUint16(rpmtd td)
Return uint16_t data from tag container.
int rpmtdFromUint16(rpmtd td, rpmTag tag, uint16_t *data, rpm_count_t count)
Construct tag container from uint16_t pointer.
int rpmtdFromStringArray(rpmtd td, rpmTag tag, const char **data, rpm_count_t count)
Construct tag container from a string array.
char * rpmtdGetChar(rpmtd td)
Return char data from tag container.
int rpmtdGetIndex(rpmtd td)
Retrieve current iteration index of the container.
int rpmtdNext(rpmtd td)
Iterate over tag data container.
enum rpmTag_e rpmTag
Tags identify data in package headers.
enum rpmtdFormats_e rpmtdFormats
uint64_t rpmtdGetNumber(rpmtd td)
Return numeric value from tag container.
int rpmtdInit(rpmtd td)
Initialize tag container for iteration.
uint64_t * rpmtdGetUint64(rpmtd td)
Return uint64_t data from tag container.
int rpmtdSetTag(rpmtd td, rpmTag tag)
Set container tag and type.
rpmTagClass rpmtdClass(rpmtd td)
Retrieve class of the container.
rpmtd rpmtdNew(void)
Create new tag data container.
int rpmtdFromUint32(rpmtd td, rpmTag tag, uint32_t *data, rpm_count_t count)
Construct tag container from uint32_t pointer.
rpmTagType rpmtdType(rpmtd td)
Retrieve type of the container.
enum rpmTagType_e rpmTagType
The basic types of data in tags from headers.
int rpmtdFromArgi(rpmtd td, rpmTag tag, ARGI_t argi)
Construct tag container from ARGI_t array.
int rpmtdFromArgv(rpmtd td, rpmTag tag, ARGV_t argv)
Construct tag container from ARGV_t array.
enum rpmtdFlags_e rpmtdFlags
int rpmtdFromUint64(rpmtd td, rpmTag tag, uint64_t *data, rpm_count_t count)
Construct tag container from uint64_t pointer.
rpm_count_t rpmtdCount(rpmtd td)
Retrieve array size of the container.
rpmTag rpmtdTag(rpmtd td)
Retrieve tag of the container.
uint32_t * rpmtdGetUint32(rpmtd td)
Return uint32_t data from tag container.
uint32_t * rpmtdNextUint32(rpmtd td)
Iterate over uint32_t type tag data container.
void rpmtdReset(rpmtd td)
(Re-)initialize tag data container.
int rpmtdFromUint8(rpmtd td, rpmTag tag, uint8_t *data, rpm_count_t count)
Construct tag container from uint8_t pointer.
rpmtd rpmtdFree(rpmtd td)
Destroy tag data container.
int rpmtdFromString(rpmtd td, rpmTag tag, const char *data)
Construct tag container from a string.
const char * rpmtdGetString(rpmtd td)
Return string data from tag container.
enum rpmTagClass_e rpmTagClass
The classes of data in tags from headers.
Container for rpm tag data (from headers or extensions).
const char * rpmtdNextString(rpmtd td)
Iterate over string / string array type tag data container.
int rpmtdSetIndex(rpmtd td, int index)
Set iteration index of the container.
char * rpmtdFormat(rpmtd td, rpmtdFormats fmt, const char *errmsg)
Format data from tag container to string presentation of given format.
void rpmtdFreeData(rpmtd td)
Free contained data.