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