diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:17:20 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:17:20 +0900 |
commit | 7df2385c2f6c93f96e00bc87f2086066cae89ecc (patch) | |
tree | 79d5c20a494622eb084de831a2a51530cd421e33 /doc/librpm/html/group__rpmtd.html | |
parent | b7a3bffb8e0341b7e4ef69def268bca3a7f279ff (diff) | |
download | rpm-submit/tizen_2.2/20130710.072219.tar.gz rpm-submit/tizen_2.2/20130710.072219.tar.bz2 rpm-submit/tizen_2.2/20130710.072219.zip |
Tizen 2.1 basesubmit/tizen_2.2/20130710.072219submit/tizen_2.1/20130423.104200accepted/tizen_2.1/20130423.1513382.2_release2.2.1_release2.1b_releasetizen_2.2tizen_2.1
Diffstat (limited to 'doc/librpm/html/group__rpmtd.html')
-rw-r--r-- | doc/librpm/html/group__rpmtd.html | 1154 |
1 files changed, 1154 insertions, 0 deletions
diff --git a/doc/librpm/html/group__rpmtd.html b/doc/librpm/html/group__rpmtd.html new file mode 100644 index 0000000..4cb3c87 --- /dev/null +++ b/doc/librpm/html/group__rpmtd.html @@ -0,0 +1,1154 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<title>rpm: RPM Tag Data Container API.</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<link href="doxygen.css" rel="stylesheet" type="text/css"/> +</head> +<body> +<!-- Generated by Doxygen 1.7.4 --> +<div id="top"> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td style="padding-left: 0.5em;"> + <div id="projectname">rpm <span id="projectnumber">4.9.1</span></div> + </td> + </tr> + </tbody> +</table> +</div> + <div id="navrow1" class="tabs"> + <ul class="tablist"> + <li><a href="index.html"><span>Main Page</span></a></li> + <li><a href="pages.html"><span>Related Pages</span></a></li> + <li><a href="modules.html"><span>Modules</span></a></li> + <li><a href="annotated.html"><span>Data Structures</span></a></li> + <li><a href="files.html"><span>Files</span></a></li> + </ul> + </div> +</div> +<div class="header"> + <div class="summary"> +<a href="#nested-classes">Data Structures</a> | +<a href="#func-members">Functions</a> </div> + <div class="headertitle"> +<div class="title">RPM Tag Data Container API.</div> </div> +</div> +<div class="contents"> +<table class="memberdecls"> +<tr><td colspan="2"><h2><a name="nested-classes"></a> +Data Structures</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structrpmtd__s.html">rpmtd_s</a></td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Container for rpm tag data (from headers or extensions). <a href="structrpmtd__s.html#details">More...</a><br/></td></tr> +<tr><td colspan="2"><h2><a name="func-members"></a> +Functions</h2></td></tr> +<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga3ffe75a53dffef8b61a42898aa6f033f">rpmtdNew</a> (void)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Create new tag data container. <a href="#ga3ffe75a53dffef8b61a42898aa6f033f"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga2355f1f65b4c2c7aefa493a9decfc3cb">rpmtdFree</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Destroy tag data container. <a href="#ga2355f1f65b4c2c7aefa493a9decfc3cb"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gac67b3356388d6e62300218c3951a5c11">rpmtdReset</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">(Re-)initialize tag data container. <a href="#gac67b3356388d6e62300218c3951a5c11"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga396c66398076f6d76c58a433cc3a9fa8">rpmtdFreeData</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Free contained data. <a href="#ga396c66398076f6d76c58a433cc3a9fa8"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga64f1ba9fd26263d2aaf95637afa88952">rpmtdCount</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve array size of the container. <a href="#ga64f1ba9fd26263d2aaf95637afa88952"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga17d82c2e31cfe5868ea3ec41c4633bcb">rpmtdTag</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve tag of the container. <a href="#ga17d82c2e31cfe5868ea3ec41c4633bcb"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__header.html#gae3bf8d35e51bc1fbaa1a2a5acdceb79e">rpmTagType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gafd101f452789b566748e41c7c059d25b">rpmtdType</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve type of the container. <a href="#gafd101f452789b566748e41c7c059d25b"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__rpmtag.html#gafc0cc16efc48b4d6ec7e83cbcb6ee5e4">rpmTagClass</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga5641f630e04df0ef27b42754c95d3482">rpmtdClass</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve class of the container. <a href="#ga5641f630e04df0ef27b42754c95d3482"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga705fbce6e54ee7b77bb31f8f8be21d32">rpmtdGetIndex</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve current iteration index of the container. <a href="#ga705fbce6e54ee7b77bb31f8f8be21d32"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga2de99a886826170387fb535bcf7dbbfe">rpmtdSetIndex</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, int index)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set iteration index of the container. <a href="#ga2de99a886826170387fb535bcf7dbbfe"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga71ec76d7e9de1a92fc733d327f3be416">rpmtdInit</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize tag container for iteration. <a href="#ga71ec76d7e9de1a92fc733d327f3be416"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga5e57cc978866875c4061ae186a27af4a">rpmtdNext</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Iterate over tag data container. <a href="#ga5e57cc978866875c4061ae186a27af4a"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">uint32_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gafea7ffb379f83d6e1ae015273e852b02">rpmtdNextUint32</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Iterate over uint32_t type tag data container. <a href="#gafea7ffb379f83d6e1ae015273e852b02"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">uint64_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga216010c4127dda8ebaeed253c8dbbdea">rpmtdNextUint64</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Iterate over uint64_t type tag data container. <a href="#ga216010c4127dda8ebaeed253c8dbbdea"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga05d6b3748839551f97f1a52e83407e66">rpmtdNextString</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Iterate over string / string array type tag data container. <a href="#ga05d6b3748839551f97f1a52e83407e66"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga75328342ca1455f678b4fcd2e54ab058">rpmtdGetChar</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return char data from tag container. <a href="#ga75328342ca1455f678b4fcd2e54ab058"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">uint16_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga9a41fef0b2c70b8296122d7a4f683648">rpmtdGetUint16</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return uint16_t data from tag container. <a href="#ga9a41fef0b2c70b8296122d7a4f683648"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">uint32_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga9538ae2dcfdb743609614f6f5bdea316">rpmtdGetUint32</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return uint32_t data from tag container. <a href="#ga9538ae2dcfdb743609614f6f5bdea316"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">uint64_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga145ddef19129ede80a7cae835324dc4f">rpmtdGetUint64</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return uint64_t data from tag container. <a href="#ga145ddef19129ede80a7cae835324dc4f"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga91ef965a03a494684a8a3d34e6d249af">rpmtdGetString</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return string data from tag container. <a href="#ga91ef965a03a494684a8a3d34e6d249af"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga307f3e6c6046c751be4bbbe6ad8a1eac">rpmtdGetNumber</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Return numeric value from tag container. <a href="#ga307f3e6c6046c751be4bbbe6ad8a1eac"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga9124d607a5e2cb2432fbfbef098acde7">rpmtdFormat</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="rpmtd_8h.html#ae428b8ff32d9632fd4233c2d5a9a3317">rpmtdFormats</a> fmt, const char *errmsg)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Format data from tag container to string presentation of given format. <a href="#ga9124d607a5e2cb2432fbfbef098acde7"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga6367d2323f907a7d97e30cbd8be5a3c8">rpmtdSetTag</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Set container tag and type. <a href="#ga6367d2323f907a7d97e30cbd8be5a3c8"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga8d95282572d17596e64e838ce64c2aa6">rpmtdFromUint8</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, uint8_t *data, <a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> count)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from uint8_t pointer. <a href="#ga8d95282572d17596e64e838ce64c2aa6"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gad422cc4067b86249fa4c0a26651093c0">rpmtdFromUint16</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, uint16_t *data, <a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> count)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from uint16_t pointer. <a href="#gad422cc4067b86249fa4c0a26651093c0"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga20949a76074375db38f09a25422b056a">rpmtdFromUint32</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, uint32_t *data, <a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> count)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from uint32_t pointer. <a href="#ga20949a76074375db38f09a25422b056a"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gad2d47c2fe4e52f47623783c77408a39d">rpmtdFromUint64</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, uint64_t *data, <a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> count)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from uint64_t pointer. <a href="#gad2d47c2fe4e52f47623783c77408a39d"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gaeb76bbe640f9cd258f3e718607737963">rpmtdFromString</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, const char *data)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from a string. <a href="#gaeb76bbe640f9cd258f3e718607737963"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga23f6e934462badf3f0859a8e02cbdadb">rpmtdFromStringArray</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, const char **data, <a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> count)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from a string array. <a href="#ga23f6e934462badf3f0859a8e02cbdadb"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#gaa6ca0b203900505c18f7785a43d073b5">rpmtdFromArgv</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <a class="el" href="argv_8h.html#a4628d0ccf538438d6ef2795aeebd7e31">ARGV_t</a> argv)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from ARGV_t array. <a href="#gaa6ca0b203900505c18f7785a43d073b5"></a><br/></td></tr> +<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpmtd.html#ga9d64cf80d83c5884b6c5f691aba5813b">rpmtdFromArgi</a> (<a class="el" href="structrpmtd__s.html">rpmtd</a> td, <a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <a class="el" href="structARGI__s.html">ARGI_t</a> argi)</td></tr> +<tr><td class="mdescLeft"> </td><td class="mdescRight">Construct tag container from ARGI_t array. <a href="#ga9d64cf80d83c5884b6c5f691aba5813b"></a><br/></td></tr> +</table> +<hr/><h2>Function Documentation</h2> +<a class="anchor" id="ga5641f630e04df0ef27b42754c95d3482"></a><!-- doxytag: member="rpmtd.h::rpmtdClass" ref="ga5641f630e04df0ef27b42754c95d3482" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="group__rpmtag.html#gafc0cc16efc48b4d6ec7e83cbcb6ee5e4">rpmTagClass</a> rpmtdClass </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Retrieve class of the container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Rpm tag class </dd></dl> + +</div> +</div> +<a class="anchor" id="ga64f1ba9fd26263d2aaf95637afa88952"></a><!-- doxytag: member="rpmtd.h::rpmtdCount" ref="ga64f1ba9fd26263d2aaf95637afa88952" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> rpmtdCount </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Retrieve array size of the container. </p> +<p>For non-array types this is always 1. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Number of entries in contained data. </dd></dl> + +</div> +</div> +<a class="anchor" id="ga9124d607a5e2cb2432fbfbef098acde7"></a><!-- doxytag: member="rpmtd.h::rpmtdFormat" ref="ga9124d607a5e2cb2432fbfbef098acde7" args="(rpmtd td, rpmtdFormats fmt, const char *errmsg)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">char* rpmtdFormat </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="rpmtd_8h.html#ae428b8ff32d9632fd4233c2d5a9a3317">rpmtdFormats</a> </td> + <td class="paramname"><em>fmt</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>errmsg</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Format data from tag container to string presentation of given format. </p> +<p>Return malloced string presentation of current data in container, converting from integers etc as necessary. On array types, data from current iteration index is used for formatting. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">fmt</td><td>Format to apply </td></tr> + <tr><td class="paramname">errmsg</td><td>Error message from conversion (or NULL) </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>String representation of current data (malloc'ed), NULL on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga2355f1f65b4c2c7aefa493a9decfc3cb"></a><!-- doxytag: member="rpmtd.h::rpmtdFree" ref="ga2355f1f65b4c2c7aefa493a9decfc3cb" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="structrpmtd__s.html">rpmtd</a> rpmtdFree </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Destroy tag data container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>NULL always </dd></dl> + +</div> +</div> +<a class="anchor" id="ga396c66398076f6d76c58a433cc3a9fa8"></a><!-- doxytag: member="rpmtd.h::rpmtdFreeData" ref="ga396c66398076f6d76c58a433cc3a9fa8" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void rpmtdFreeData </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Free contained data. </p> +<p>This is always safe to call as the container knows if data was malloc'ed or not. Container is reinitialized. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> + +</div> +</div> +<a class="anchor" id="ga9d64cf80d83c5884b6c5f691aba5813b"></a><!-- doxytag: member="rpmtd.h::rpmtdFromArgi" ref="ga9d64cf80d83c5884b6c5f691aba5813b" args="(rpmtd td, rpmTagVal tag, ARGI_t argi)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromArgi </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="structARGI__s.html">ARGI_t</a> </td> + <td class="paramname"><em>argi</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from ARGI_t array. </p> +<p>Tag type is checked to be of integer array type and array is checked to be non-empty. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">argi</td><td>ARGI array </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="gaa6ca0b203900505c18f7785a43d073b5"></a><!-- doxytag: member="rpmtd.h::rpmtdFromArgv" ref="gaa6ca0b203900505c18f7785a43d073b5" args="(rpmtd td, rpmTagVal tag, ARGV_t argv)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromArgv </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="argv_8h.html#a4628d0ccf538438d6ef2795aeebd7e31">ARGV_t</a> </td> + <td class="paramname"><em>argv</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from ARGV_t array. </p> +<p>Tag type is checked to be of string array type and array is checked to be non-empty. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">argv</td><td>ARGV array </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="gaeb76bbe640f9cd258f3e718607737963"></a><!-- doxytag: member="rpmtd.h::rpmtdFromString" ref="gaeb76bbe640f9cd258f3e718607737963" args="(rpmtd td, rpmTagVal tag, const char *data)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromString </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char * </td> + <td class="paramname"><em>data</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from a string. </p> +<p>Tag type is checked to be of string type. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">data</td><td>String to use </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="ga23f6e934462badf3f0859a8e02cbdadb"></a><!-- doxytag: member="rpmtd.h::rpmtdFromStringArray" ref="ga23f6e934462badf3f0859a8e02cbdadb" args="(rpmtd td, rpmTagVal tag, const char **data, rpm_count_t count)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromStringArray </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const char ** </td> + <td class="paramname"><em>data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> </td> + <td class="paramname"><em>count</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from a string array. </p> +<p>Tag type is checked to be of string or string array type. For non-array types count must be exactly 1. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">data</td><td>Pointer to string array </td></tr> + <tr><td class="paramname">count</td><td>Number of entries </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="gad422cc4067b86249fa4c0a26651093c0"></a><!-- doxytag: member="rpmtd.h::rpmtdFromUint16" ref="gad422cc4067b86249fa4c0a26651093c0" args="(rpmtd td, rpmTagVal tag, uint16_t *data, rpm_count_t count)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromUint16 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">uint16_t * </td> + <td class="paramname"><em>data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> </td> + <td class="paramname"><em>count</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from uint16_t pointer. </p> +<p>Tag type is checked to be of INT16 type. For non-array types count must be exactly 1. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">data</td><td>Pointer to uint16_t (value or array) </td></tr> + <tr><td class="paramname">count</td><td>Number of entries </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="ga20949a76074375db38f09a25422b056a"></a><!-- doxytag: member="rpmtd.h::rpmtdFromUint32" ref="ga20949a76074375db38f09a25422b056a" args="(rpmtd td, rpmTagVal tag, uint32_t *data, rpm_count_t count)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromUint32 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">uint32_t * </td> + <td class="paramname"><em>data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> </td> + <td class="paramname"><em>count</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from uint32_t pointer. </p> +<p>Tag type is checked to be of INT32 type. For non-array types count must be exactly 1. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">data</td><td>Pointer to uint32_t (value or array) </td></tr> + <tr><td class="paramname">count</td><td>Number of entries </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="gad2d47c2fe4e52f47623783c77408a39d"></a><!-- doxytag: member="rpmtd.h::rpmtdFromUint64" ref="gad2d47c2fe4e52f47623783c77408a39d" args="(rpmtd td, rpmTagVal tag, uint64_t *data, rpm_count_t count)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromUint64 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">uint64_t * </td> + <td class="paramname"><em>data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> </td> + <td class="paramname"><em>count</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from uint64_t pointer. </p> +<p>Tag type is checked to be of INT64 type. For non-array types count must be exactly 1. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">data</td><td>Pointer to uint64_t (value or array) </td></tr> + <tr><td class="paramname">count</td><td>Number of entries </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="ga8d95282572d17596e64e838ce64c2aa6"></a><!-- doxytag: member="rpmtd.h::rpmtdFromUint8" ref="ga8d95282572d17596e64e838ce64c2aa6" args="(rpmtd td, rpmTagVal tag, uint8_t *data, rpm_count_t count)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdFromUint8 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">uint8_t * </td> + <td class="paramname"><em>data</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> </td> + <td class="paramname"><em>count</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Construct tag container from uint8_t pointer. </p> +<p>Tag type is checked to be of compatible type (CHAR, INT8 or BIN). For non-array types (BIN is a special case of INT8 array) count must be exactly 1. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>Rpm tag to construct </td></tr> + <tr><td class="paramname">data</td><td>Pointer to uint8_t (value or array) </td></tr> + <tr><td class="paramname">count</td><td>Number of entries </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error (eg wrong type) </dd></dl> + +</div> +</div> +<a class="anchor" id="ga75328342ca1455f678b4fcd2e54ab058"></a><!-- doxytag: member="rpmtd.h::rpmtdGetChar" ref="ga75328342ca1455f678b4fcd2e54ab058" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">char* rpmtdGetChar </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Return char data from tag container. </p> +<p>For scalar return type, just return pointer to the integer. On array types, return pointer to current iteration index. If the tag container is not for char type, NULL is returned. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to uint16_t, NULL on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga705fbce6e54ee7b77bb31f8f8be21d32"></a><!-- doxytag: member="rpmtd.h::rpmtdGetIndex" ref="ga705fbce6e54ee7b77bb31f8f8be21d32" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdGetIndex </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Retrieve current iteration index of the container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Iteration index (or -1 if not iterating) </dd></dl> + +</div> +</div> +<a class="anchor" id="ga307f3e6c6046c751be4bbbe6ad8a1eac"></a><!-- doxytag: member="rpmtd.h::rpmtdGetNumber" ref="ga307f3e6c6046c751be4bbbe6ad8a1eac" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">uint64_t rpmtdGetNumber </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Return numeric value from tag container. </p> +<p>Returns the value of numeric container (RPM_NUMERIC_CLASS) from current iteration index as uint64_t regardless of its internal presentation (8/16/32/64-bit integer). </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Value of current iteration item as uint64_t, 0 for non-numeric types (error) </dd></dl> + +</div> +</div> +<a class="anchor" id="ga91ef965a03a494684a8a3d34e6d249af"></a><!-- doxytag: member="rpmtd.h::rpmtdGetString" ref="ga91ef965a03a494684a8a3d34e6d249af" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">const char* rpmtdGetString </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Return string data from tag container. </p> +<p>For string types, just return the string. On string array types, return the string from current iteration index. If the tag container is not for a string type, NULL is returned. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>String constant from container, NULL on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga9a41fef0b2c70b8296122d7a4f683648"></a><!-- doxytag: member="rpmtd.h::rpmtdGetUint16" ref="ga9a41fef0b2c70b8296122d7a4f683648" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">uint16_t* rpmtdGetUint16 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Return uint16_t data from tag container. </p> +<p>For scalar return type, just return pointer to the integer. On array types, return pointer to current iteration index. If the tag container is not for int16 type, NULL is returned. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to uint16_t, NULL on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga9538ae2dcfdb743609614f6f5bdea316"></a><!-- doxytag: member="rpmtd.h::rpmtdGetUint32" ref="ga9538ae2dcfdb743609614f6f5bdea316" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">uint32_t* rpmtdGetUint32 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Return uint32_t data from tag container. </p> +<p>For scalar return type, just return pointer to the integer. On array types, return pointer to current iteration index. If the tag container is not for int32 type, NULL is returned. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to uint32_t, NULL on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga145ddef19129ede80a7cae835324dc4f"></a><!-- doxytag: member="rpmtd.h::rpmtdGetUint64" ref="ga145ddef19129ede80a7cae835324dc4f" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">uint64_t* rpmtdGetUint64 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Return uint64_t data from tag container. </p> +<p>For scalar return type, just return pointer to the integer. On array types, return pointer to current iteration index. If the tag container is not for int64 type, NULL is returned. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to uint64_t, NULL on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga71ec76d7e9de1a92fc733d327f3be416"></a><!-- doxytag: member="rpmtd.h::rpmtdInit" ref="ga71ec76d7e9de1a92fc733d327f3be416" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdInit </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Initialize tag container for iteration. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>0 on success </dd></dl> + +</div> +</div> +<a class="anchor" id="ga3ffe75a53dffef8b61a42898aa6f033f"></a><!-- doxytag: member="rpmtd.h::rpmtdNew" ref="ga3ffe75a53dffef8b61a42898aa6f033f" args="(void)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="structrpmtd__s.html">rpmtd</a> rpmtdNew </td> + <td>(</td> + <td class="paramtype">void </td> + <td class="paramname"></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Create new tag data container. </p> +<dl class="return"><dt><b>Returns:</b></dt><dd>New, initialized tag data container. </dd></dl> + +</div> +</div> +<a class="anchor" id="ga5e57cc978866875c4061ae186a27af4a"></a><!-- doxytag: member="rpmtd.h::rpmtdNext" ref="ga5e57cc978866875c4061ae186a27af4a" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdNext </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Iterate over tag data container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Tag data container iterator index, -1 on termination </dd></dl> + +</div> +</div> +<a class="anchor" id="ga05d6b3748839551f97f1a52e83407e66"></a><!-- doxytag: member="rpmtd.h::rpmtdNextString" ref="ga05d6b3748839551f97f1a52e83407e66" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">const char* rpmtdNextString </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Iterate over string / string array type tag data container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to next value, NULL on termination or error </dd></dl> + +</div> +</div> +<a class="anchor" id="gafea7ffb379f83d6e1ae015273e852b02"></a><!-- doxytag: member="rpmtd.h::rpmtdNextUint32" ref="gafea7ffb379f83d6e1ae015273e852b02" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">uint32_t* rpmtdNextUint32 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Iterate over uint32_t type tag data container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to next value, NULL on termination or error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga216010c4127dda8ebaeed253c8dbbdea"></a><!-- doxytag: member="rpmtd.h::rpmtdNextUint64" ref="ga216010c4127dda8ebaeed253c8dbbdea" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">uint64_t* rpmtdNextUint64 </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Iterate over uint64_t type tag data container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to next value, NULL on termination or error </dd></dl> + +</div> +</div> +<a class="anchor" id="gac67b3356388d6e62300218c3951a5c11"></a><!-- doxytag: member="rpmtd.h::rpmtdReset" ref="gac67b3356388d6e62300218c3951a5c11" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void rpmtdReset </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>(Re-)initialize tag data container. </p> +<p>Contents will be zeroed out and iteration index reset. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> + +</div> +</div> +<a class="anchor" id="ga2de99a886826170387fb535bcf7dbbfe"></a><!-- doxytag: member="rpmtd.h::rpmtdSetIndex" ref="ga2de99a886826170387fb535bcf7dbbfe" args="(rpmtd td, int index)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdSetIndex </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">int </td> + <td class="paramname"><em>index</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Set iteration index of the container. </p> +<p>If new index is out of bounds for the container, -1 is returned and iteration index is left untouched. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">index</td><td>New index </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>New index, or -1 if index out of bounds </dd></dl> + +</div> +</div> +<a class="anchor" id="ga6367d2323f907a7d97e30cbd8be5a3c8"></a><!-- doxytag: member="rpmtd.h::rpmtdSetTag" ref="ga6367d2323f907a7d97e30cbd8be5a3c8" args="(rpmtd td, rpmTagVal tag)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">int rpmtdSetTag </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> </td> + <td class="paramname"><em>tag</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Set container tag and type. </p> +<p>For empty container, any valid tag can be set. If the container has data, changing is only permitted to tag of same type. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + <tr><td class="paramname">tag</td><td>New tag </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>1 on success, 0 on error </dd></dl> + +</div> +</div> +<a class="anchor" id="ga17d82c2e31cfe5868ea3ec41c4633bcb"></a><!-- doxytag: member="rpmtd.h::rpmtdTag" ref="ga17d82c2e31cfe5868ea3ec41c4633bcb" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> rpmtdTag </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Retrieve tag of the container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Rpm tag. </dd></dl> + +</div> +</div> +<a class="anchor" id="gafd101f452789b566748e41c7c059d25b"></a><!-- doxytag: member="rpmtd.h::rpmtdType" ref="gafd101f452789b566748e41c7c059d25b" args="(rpmtd td)" --> +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="group__header.html#gae3bf8d35e51bc1fbaa1a2a5acdceb79e">rpmTagType</a> rpmtdType </td> + <td>(</td> + <td class="paramtype"><a class="el" href="structrpmtd__s.html">rpmtd</a> </td> + <td class="paramname"><em>td</em></td><td>)</td> + <td></td> + </tr> + </table> +</div> +<div class="memdoc"> + +<p>Retrieve type of the container. </p> +<dl><dt><b>Parameters:</b></dt><dd> + <table class="params"> + <tr><td class="paramname">td</td><td>Tag data container </td></tr> + </table> + </dd> +</dl> +<dl class="return"><dt><b>Returns:</b></dt><dd>Rpm tag type. </dd></dl> + +</div> +</div> +</div> +<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 15 2011 for rpm by  +<a href="http://www.doxygen.org/index.html"> +<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> +</body> +</html> |