4 #include <rpm/rpmtypes.h> int rpmtdFromArgv(rpmtd td, rpmTagVal tag, ARGV_t argv)
Construct tag container from ARGV_t array.
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.
rpmsid * rpmtdToPool(rpmtd td, rpmstrPool pool)
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 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.
rpmTagClass rpmtdClass(rpmtd td)
Retrieve class of the container.
rpmtd rpmtdNew(void)
Create new tag data container.
int rpmtdFromArgi(rpmtd td, rpmTagVal tag, ARGI_t argi)
Construct tag container from ARGI_t array.
int rpmtdFromString(rpmtd td, rpmTagVal tag, const char *data)
Construct tag container from a string.
rpmTagVal rpmtdTag(rpmtd td)
Retrieve tag of the container.
int rpmtdFromUint16(rpmtd td, rpmTagVal tag, uint16_t *data, rpm_count_t count)
Construct tag container from uint16_t pointer.
struct rpmstrPool_s * rpmstrPool
rpmTagType rpmtdType(rpmtd td)
Retrieve type of the container.
int rpmtdFromUint8(rpmtd td, rpmTagVal tag, uint8_t *data, rpm_count_t count)
Construct tag container from uint8_t pointer.
enum rpmTagType_e rpmTagType
The basic types of data in tags from headers.
rpm_count_t rpmtdSize(rpmtd td)
Retrieve container data size (eg required for allocation).
int rpmtdFromUint32(rpmtd td, rpmTagVal tag, uint32_t *data, rpm_count_t count)
Construct tag container from uint32_t pointer.
rpm_count_t rpmtdCount(rpmtd td)
Retrieve array size 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.
rpmtd rpmtdFree(rpmtd td)
Destroy tag data container.
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.
int rpmtdFromStringArray(rpmtd td, rpmTagVal tag, const char **data, rpm_count_t count)
Construct tag container from a string array.
int rpmtdSetTag(rpmtd td, rpmTagVal tag)
Set container tag and type.
int rpmtdFromUint64(rpmtd td, rpmTagVal tag, uint64_t *data, rpm_count_t count)
Construct tag container from uint64_t pointer.
rpmtdFlags rpmtdGetFlags(rpmtd td)
Retrieve flags of the container (allocation details etc)
void rpmtdFreeData(rpmtd td)
Free contained data.