Add getter for rpmtd flags
- While these are mostly of rpmtd-internal interest only, there are cases when caller might want to know...
This commit is contained in:
parent
7a9a550566
commit
b922b4392f
|
@ -74,6 +74,11 @@ rpmTagClass rpmtdClass(rpmtd td)
|
||||||
return rpmTagTypeGetClass(td->type);
|
return rpmTagTypeGetClass(td->type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rpmtdFlags rpmtdGetFlags(rpmtd td)
|
||||||
|
{
|
||||||
|
return (td != NULL) ? td->flags : 0;
|
||||||
|
}
|
||||||
|
|
||||||
int rpmtdGetIndex(rpmtd td)
|
int rpmtdGetIndex(rpmtd td)
|
||||||
{
|
{
|
||||||
assert(td != NULL);
|
assert(td != NULL);
|
||||||
|
|
|
@ -86,6 +86,13 @@ rpmTagType rpmtdType(rpmtd td);
|
||||||
*/
|
*/
|
||||||
rpmTagClass rpmtdClass(rpmtd td);
|
rpmTagClass rpmtdClass(rpmtd td);
|
||||||
|
|
||||||
|
/** \ingroup rpmtd
|
||||||
|
* Retrieve flags of the container (allocation details etc)
|
||||||
|
* @param td Tag data container
|
||||||
|
* @return Container flags
|
||||||
|
*/
|
||||||
|
rpmtdFlags rpmtdGetFlags(rpmtd td);
|
||||||
|
|
||||||
/** \ingroup rpmtd
|
/** \ingroup rpmtd
|
||||||
* Retrieve current iteration index of the container.
|
* Retrieve current iteration index of the container.
|
||||||
* @param td Tag data container
|
* @param td Tag data container
|
||||||
|
|
Loading…
Reference in New Issue