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:
Panu Matilainen 2012-02-21 13:50:34 +02:00
parent 7a9a550566
commit b922b4392f
2 changed files with 12 additions and 0 deletions

View File

@ -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);

View File

@ -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