summaryrefslogtreecommitdiff
path: root/doc/librpm/html/header_8h_source.html
blob: d556d7fcbf0ec8d6fb7345fe2c13060b9080ccbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!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: header.h Source File</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&#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">header.h</div>  </div>
</div>
<div class="contents">
<a href="header_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef H_HEADER</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define H_HEADER</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="comment">/* RPM - Copyright (C) 1995-2001 Red Hat Software */</span>
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;rpm/rpmio.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;rpm/rpmtypes.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;rpm/rpmtd.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;rpm/rpmutil.h&gt;</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00022"></a>00022 <span class="preprocessor">#endif</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="group__header.html#ga6483a32ca9785bcef5fba196608ac0fb" title="Header magic value.">rpm_header_magic</a>[8];
<a name="l00028"></a>00028 
<a name="l00032"></a><a class="code" href="group__header.html#ga2572591faf5430cdf28aaf9f70d74fa4">00032</a> <span class="keyword">enum</span> <a class="code" href="group__header.html#ga2572591faf5430cdf28aaf9f70d74fa4" title="Include calculation for 8 bytes of (magic, 0)?">hMagic</a> {
<a name="l00033"></a><a class="code" href="group__header.html#gga2572591faf5430cdf28aaf9f70d74fa4a4df0aa5955f506525b5a5537605e3092">00033</a>     <a class="code" href="group__header.html#gga2572591faf5430cdf28aaf9f70d74fa4a4df0aa5955f506525b5a5537605e3092">HEADER_MAGIC_NO</a>             = 0,
<a name="l00034"></a><a class="code" href="group__header.html#gga2572591faf5430cdf28aaf9f70d74fa4aebb6d0af72ae9d4c607e81796dafa472">00034</a>     <a class="code" href="group__header.html#gga2572591faf5430cdf28aaf9f70d74fa4aebb6d0af72ae9d4c607e81796dafa472">HEADER_MAGIC_YES</a>            = 1
<a name="l00035"></a>00035 };
<a name="l00036"></a>00036 
<a name="l00041"></a>00041 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#gaba1932e7962b6c650006c3083530b042" title="Create new (empty) header instance.">headerNew</a>(<span class="keywordtype">void</span>);
<a name="l00042"></a>00042 
<a name="l00048"></a>00048 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#ga15e58ea36a4ad540759989db341797ce" title="Dereference a header instance.">headerFree</a>( <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00049"></a>00049 
<a name="l00055"></a>00055 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#gab8e8158584de00bad7bbf91cd7b43e72" title="Reference a header instance.">headerLink</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00056"></a>00056 
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="group__header.html#gab68de4a4d57795669a97ba8a101f3e51" title="Sort tags in header.">headerSort</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00062"></a>00062 
<a name="l00067"></a>00067 <span class="keywordtype">void</span> <a class="code" href="group__header.html#ga9b3c8381f8d7e1f0818c40fc32287f02" title="Restore tags in header to original ordering.">headerUnsort</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00068"></a>00068 
<a name="l00075"></a>00075 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__header.html#gabe6057e3d70882f1d756ab87c555baf6" title="Return size of on-disk header representation in bytes.">headerSizeof</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keywordtype">int</span> magicp);
<a name="l00076"></a>00076 
<a name="l00086"></a>00086 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gaf77927dd7aafa1bb3d1d878890387f0f" title="Perform simple sanity and range checks on header tag(s).">headerVerifyInfo</a>(<span class="keywordtype">int</span> il, <span class="keywordtype">int</span> dl, <span class="keyword">const</span> <span class="keywordtype">void</span> * pev, <span class="keywordtype">void</span> * iv, <span class="keywordtype">int</span> negate);
<a name="l00087"></a>00087 
<a name="l00093"></a>00093 <span class="keywordtype">void</span> * <a class="code" href="group__header.html#ga33ea43d033ea680a8c5357ed9cec7283" title="Convert header to on-disk representation.">headerUnload</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00094"></a>00094 
<a name="l00102"></a>00102 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#gaf20c66a7e5a96a7bcdf186ff517bd6ff" title="Convert header to on-disk representation, and then reload.">headerReload</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag);
<a name="l00103"></a>00103 
<a name="l00109"></a>00109 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#gac6ec9b02a38e9ad6bc9bd10c73eb2960" title="Duplicate a header.">headerCopy</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00110"></a>00110 
<a name="l00116"></a>00116 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#gaa44e906299e81eda325dbef9fd991c9c" title="Convert header to in-memory representation.">headerLoad</a>(<span class="keywordtype">void</span> * uh);
<a name="l00117"></a>00117 
<a name="l00123"></a>00123 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#gaa4af55b82df3f36dd7257cd3a1b2b7d9" title="Make a copy and convert header to in-memory representation.">headerCopyLoad</a>(<span class="keyword">const</span> <span class="keywordtype">void</span> * uh);
<a name="l00124"></a>00124 
<a name="l00131"></a>00131 <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> <a class="code" href="group__header.html#ga29a7512cc49adc47238baf0acd3f67e5" title="Read (and load) header from file handle.">headerRead</a>(<a class="code" href="group__rpmtypes.html#ga078f4187c683508f3147e94397bab8d5" title="RPM IO file descriptor type.">FD_t</a> fd, <span class="keywordtype">int</span> magicp);
<a name="l00132"></a>00132 
<a name="l00140"></a>00140 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gabe3afb87a33318ab9cef8039d9a12698" title="Write (with unload) header to file handle.">headerWrite</a>(<a class="code" href="group__rpmtypes.html#ga078f4187c683508f3147e94397bab8d5" title="RPM IO file descriptor type.">FD_t</a> fd, <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keywordtype">int</span> magicp);
<a name="l00141"></a>00141 
<a name="l00148"></a>00148 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gafb403521514c8e7ebaec2cd568c128de" title="Check if tag is in header.">headerIsEntry</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag);
<a name="l00149"></a>00149 
<a name="l00159"></a><a class="code" href="group__header.html#gae10b109d8e56faba07f4743b797b893a">00159</a> <span class="keyword">enum</span> <a class="code" href="group__header.html#gae10b109d8e56faba07f4743b797b893a" title="Modifier flags for headerGet() operation.">headerGetFlags_e</a> {
<a name="l00160"></a><a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa10a9f914f9b8f462ad846dc27cab28c6">00160</a>     <a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa10a9f914f9b8f462ad846dc27cab28c6">HEADERGET_DEFAULT</a>   = 0,        <span class="comment">/* legacy headerGetEntry() behavior */</span>
<a name="l00161"></a><a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa9ff0aaa4dbaf60dc852c5af8ca6487f2">00161</a>     <a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa9ff0aaa4dbaf60dc852c5af8ca6487f2">HEADERGET_MINMEM</a>    = (1 &lt;&lt; 0), <span class="comment">/* pointers can refer to header memory */</span>
<a name="l00162"></a><a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa38f8e76cedf30634d4d7621be70c5847">00162</a>     <a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa38f8e76cedf30634d4d7621be70c5847">HEADERGET_EXT</a>       = (1 &lt;&lt; 1), <span class="comment">/* lookup extension types too */</span>
<a name="l00163"></a><a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa9323938f8824a1257d24adec115996a4">00163</a>     <a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa9323938f8824a1257d24adec115996a4">HEADERGET_RAW</a>       = (1 &lt;&lt; 2), <span class="comment">/* return raw contents (no i18n lookups) */</span>
<a name="l00164"></a><a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa8fb050c50c60c1b2a931a56e0beb2b8a">00164</a>     <a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa8fb050c50c60c1b2a931a56e0beb2b8a">HEADERGET_ALLOC</a>     = (1 &lt;&lt; 3), <span class="comment">/* always allocate memory for all data */</span>
<a name="l00165"></a><a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa3dc9e71e8a1777e9a68adde6569aef96">00165</a>     <a class="code" href="group__header.html#ggae10b109d8e56faba07f4743b797b893aa3dc9e71e8a1777e9a68adde6569aef96">HEADERGET_ARGV</a>      = (1 &lt;&lt; 4), <span class="comment">/* return string arrays NULL-terminated */</span>
<a name="l00166"></a>00166 };
<a name="l00167"></a>00167 
<a name="l00168"></a><a class="code" href="header_8h.html#a90e3a0c184de0dcd9a74e875e3a438c0">00168</a> <span class="keyword">typedef</span> <a class="code" href="group__rpmtypes.html#ga44316ffc2f14b8b54c8473f2977e8c81">rpmFlags</a> <a class="code" href="header_8h.html#a90e3a0c184de0dcd9a74e875e3a438c0">headerGetFlags</a>;
<a name="l00169"></a>00169 
<a name="l00178"></a>00178 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga7a2b47707f49dd90c7f3e7799e4a01b3" title="Retrieve tag value.">headerGet</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <a class="code" href="structrpmtd__s.html" title="Container for rpm tag data (from headers or extensions).">rpmtd</a> td, headerGetFlags flags);
<a name="l00179"></a>00179 
<a name="l00180"></a>00180 
<a name="l00181"></a><a class="code" href="header_8h.html#a0801150465036435d3da5d2654657d5c">00181</a> <span class="keyword">enum</span> <a class="code" href="header_8h.html#a0801150465036435d3da5d2654657d5c">headerPutFlags_e</a> {
<a name="l00182"></a><a class="code" href="header_8h.html#a0801150465036435d3da5d2654657d5cab84d568124b06cfdbe8800c1bcadcdf6">00182</a>     <a class="code" href="header_8h.html#a0801150465036435d3da5d2654657d5cab84d568124b06cfdbe8800c1bcadcdf6">HEADERPUT_DEFAULT</a>   = 0,
<a name="l00183"></a><a class="code" href="header_8h.html#a0801150465036435d3da5d2654657d5ca1f5b6d963e2a1728f5779c30b1480a52">00183</a>     <a class="code" href="header_8h.html#a0801150465036435d3da5d2654657d5ca1f5b6d963e2a1728f5779c30b1480a52">HEADERPUT_APPEND</a>    = (1 &lt;&lt; 0),
<a name="l00184"></a>00184 };
<a name="l00185"></a>00185 
<a name="l00186"></a><a class="code" href="header_8h.html#a0c621fdfe7dd922f5772fa1019af4cb9">00186</a> <span class="keyword">typedef</span> <a class="code" href="group__rpmtypes.html#ga44316ffc2f14b8b54c8473f2977e8c81">rpmFlags</a> <a class="code" href="header_8h.html#a0c621fdfe7dd922f5772fa1019af4cb9">headerPutFlags</a>;
<a name="l00187"></a>00187 
<a name="l00196"></a>00196 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga2275b05ca8482917028356781f9a125d" title="Add or append tag to header.">headerPut</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="structrpmtd__s.html" title="Container for rpm tag data (from headers or extensions).">rpmtd</a> td, headerPutFlags flags);
<a name="l00197"></a>00197 
<a name="l00221"></a>00221 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga9a7cc53243734db48200933aecaea57c" title="Type-safe methods for inserting tag data to header.">headerPutString</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> <span class="keywordtype">char</span> *val);
<a name="l00222"></a>00222 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga49fc2962d2ca89a6b5d0037f179bec3b">headerPutStringArray</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> <span class="keywordtype">char</span> **val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00223"></a>00223 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga9e199fc71b38054854cbce80688d3f34">headerPutBin</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> uint8_t *val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00224"></a>00224 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gaa4d045e93d8dd80ae5926adc497c89fe">headerPutChar</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> <span class="keywordtype">char</span> *val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00225"></a>00225 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga76de0144adee11ce027a6df0df6a9211">headerPutUint8</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> uint8_t *val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00226"></a>00226 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gaad9057a802f0b75770306b0bb8278cab">headerPutUint16</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> uint16_t *val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00227"></a>00227 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gaac1ccf3d2c03fea718715fecb18e83c8">headerPutUint32</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> uint32_t *val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00228"></a>00228 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga16cbe23295f03e636efdbb7c82c3b2b6">headerPutUint64</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> uint64_t *val, <a class="code" href="group__rpmtypes.html#ga12927399545450cd58cca8abdc44e768">rpm_count_t</a> size);
<a name="l00251"></a>00251 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga16c4db38571cb061497692d4703f69bd" title="Add locale specific tag to header.">headerAddI18NString</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag, <span class="keyword">const</span> <span class="keywordtype">char</span> * <span class="keywordtype">string</span>,
<a name="l00252"></a>00252                 <span class="keyword">const</span> <span class="keywordtype">char</span> * lang);
<a name="l00253"></a>00253 
<a name="l00261"></a>00261 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga1da44d2ff4356452098ecab7214ec66d" title="Modify tag in header.">headerMod</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="structrpmtd__s.html" title="Container for rpm tag data (from headers or extensions).">rpmtd</a> td);
<a name="l00262"></a>00262 
<a name="l00272"></a>00272 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga51d00fb009078a0a884a38844aa87289" title="Delete tag in header.">headerDel</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag);
<a name="l00273"></a>00273 
<a name="l00283"></a>00283 <span class="keywordtype">char</span> * <a class="code" href="group__header.html#gaca1e14f3cde6bfbc931582dfb52f5307" title="Return formatted output string from header tags.">headerFormat</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keyword">const</span> <span class="keywordtype">char</span> * fmt, <a class="code" href="rpmtypes_8h.html#ab20ae37fc60551c3abf7f9b25fcd3bc2">errmsg_t</a> * errmsg);
<a name="l00284"></a>00284 
<a name="l00291"></a>00291 <span class="keywordtype">void</span> <a class="code" href="group__header.html#ga3e30db21bf5804f5f5555320310dac69" title="Duplicate tag values from one header into another.">headerCopyTags</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> headerFrom, <a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> headerTo, 
<a name="l00292"></a>00292                     <span class="keyword">const</span> <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> * tagstocopy);
<a name="l00293"></a>00293 
<a name="l00299"></a>00299 <a class="code" href="group__rpmtypes.html#ga04fc66186d2c57c59085895c232091ab">HeaderIterator</a> <a class="code" href="group__header.html#ga98877806b624ced2fac5cd0bb50239a4" title="Destroy header tag iterator.">headerFreeIterator</a>(<a class="code" href="group__rpmtypes.html#ga04fc66186d2c57c59085895c232091ab">HeaderIterator</a> hi);
<a name="l00300"></a>00300 
<a name="l00306"></a>00306 <a class="code" href="group__rpmtypes.html#ga04fc66186d2c57c59085895c232091ab">HeaderIterator</a> <a class="code" href="group__header.html#gae549f696a160547449c7fbd3606026b3" title="Create header tag iterator.">headerInitIterator</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00307"></a>00307 
<a name="l00314"></a>00314 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga9c4cc53c5f7e88665752bbceee2e5756" title="Return next tag contents from header.">headerNext</a>(<a class="code" href="group__rpmtypes.html#ga04fc66186d2c57c59085895c232091ab">HeaderIterator</a> hi, <a class="code" href="structrpmtd__s.html" title="Container for rpm tag data (from headers or extensions).">rpmtd</a> td);
<a name="l00315"></a>00315 
<a name="l00321"></a>00321 <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> <a class="code" href="group__header.html#gafa3424ff811c33c12b8297ac5e44a5c2" title="Return next tag number from header.">headerNextTag</a>(<a class="code" href="group__rpmtypes.html#ga04fc66186d2c57c59085895c232091ab">HeaderIterator</a> hi);
<a name="l00322"></a>00322 
<a name="l00331"></a>00331 <a class="code" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961">RPM_GNUC_DEPRECATED</a>
<a name="l00332"></a>00332 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gaf464f34a68f0dd28ee1b21c542f20103" title="Return name, version, release strings from header.">headerNVR</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h,
<a name="l00333"></a>00333                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** np,
<a name="l00334"></a>00334                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** vp,
<a name="l00335"></a>00335                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** rp);
<a name="l00336"></a>00336 
<a name="l00347"></a>00347 <a class="code" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961">RPM_GNUC_DEPRECATED</a>
<a name="l00348"></a>00348 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga8c1d0358eb869c59f4ee0ac08cc7b6f7" title="Return name, epoch, version, release, arch strings from header.">headerNEVRA</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h,
<a name="l00349"></a>00349                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** np,
<a name="l00350"></a>00350                 uint32_t ** ep,
<a name="l00351"></a>00351                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** vp,
<a name="l00352"></a>00352                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** rp,
<a name="l00353"></a>00353                 <span class="keyword">const</span> <span class="keywordtype">char</span> ** ap);
<a name="l00354"></a>00354 
<a name="l00361"></a>00361 <a class="code" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961">RPM_GNUC_DEPRECATED</a>
<a name="l00362"></a>00362 <span class="keywordtype">char</span> * <a class="code" href="group__header.html#ga2b345b12d18067ea122b04ef116871ea" title="Return (malloc&#39;d) header name-version-release string.">headerGetNEVR</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keyword">const</span> <span class="keywordtype">char</span> ** np );
<a name="l00363"></a>00363 
<a name="l00370"></a>00370 <a class="code" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961">RPM_GNUC_DEPRECATED</a>
<a name="l00371"></a>00371 <span class="keywordtype">char</span> * <a class="code" href="group__header.html#gaf14a79191e915a24f56590ee7274792b" title="Return (malloc&#39;d) header name-version-release.arch string.">headerGetNEVRA</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keyword">const</span> <span class="keywordtype">char</span> ** np );
<a name="l00372"></a>00372 
<a name="l00373"></a>00373 <span class="comment">/* \ingroup header</span>
<a name="l00374"></a>00374 <span class="comment"> * Return (malloc&#39;d) header (epoch:)version-release string.</span>
<a name="l00375"></a>00375 <span class="comment"> * @param h             header</span>
<a name="l00376"></a>00376 <span class="comment"> * @retval np           name tag value (or NULL)</span>
<a name="l00377"></a>00377 <span class="comment"> * @return             (epoch:)version-release string</span>
<a name="l00378"></a>00378 <span class="comment"> */</span>
<a name="l00379"></a>00379 <a class="code" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961">RPM_GNUC_DEPRECATED</a>
<a name="l00380"></a>00380 <span class="keywordtype">char</span> * <a class="code" href="header_8h.html#ac9e82de0b6c9dd9322e6b25a70d8df41">headerGetEVR</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keyword">const</span> <span class="keywordtype">char</span> **np);
<a name="l00381"></a>00381 
<a name="l00388"></a>00388 <span class="keywordtype">char</span> * <a class="code" href="group__header.html#ga8e4563d798b9d1e6dae92f31f7f05de3" title="Return any non-array tag from header, converted to string.">headerGetAsString</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag);
<a name="l00389"></a>00389 
<a name="l00396"></a>00396 <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="group__header.html#ga33376e8850c275b72059fe723a0d3066" title="Return a simple string tag from header.">headerGetString</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag);
<a name="l00397"></a>00397 
<a name="l00398"></a>00398 <span class="comment">/* \ingroup header</span>
<a name="l00399"></a>00399 <span class="comment"> * Return a simple number tag (or extension) from header</span>
<a name="l00400"></a>00400 <span class="comment"> * @param h             header</span>
<a name="l00401"></a>00401 <span class="comment"> * @param tag           tag to retrieve</span>
<a name="l00402"></a>00402 <span class="comment"> * @return              numeric tag value or 0 on failure</span>
<a name="l00403"></a>00403 <span class="comment"> */</span>
<a name="l00404"></a>00404 uint64_t <a class="code" href="header_8h.html#a8a4fd4f0bb8c270496d428d00e1d83a0">headerGetNumber</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <a class="code" href="group__rpmtypes.html#ga2ef24de5e3abc53a5be49546c6b1eccf">rpmTagVal</a> tag);
<a name="l00405"></a>00405 
<a name="l00411"></a>00411 <a class="code" href="rpmutil_8h.html#a02e3e8be9304aeb89300ea2fcc877961">RPM_GNUC_DEPRECATED</a>
<a name="l00412"></a>00412 <a class="code" href="group__rpmtypes.html#ga5320e2d8dbd395706d114a4d8fc93505">rpm_color_t</a> <a class="code" href="group__header.html#gaf8f218d9d2c27f435c3a11a286adb01f" title="Return header color.">headerGetColor</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00413"></a>00413 
<a name="l00419"></a>00419 <span class="keywordtype">int</span> <a class="code" href="group__header.html#ga3e665b416a45423189eefd54d32e8826" title="Check if header is a source or binary package header.">headerIsSource</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00420"></a>00420 
<a name="l00426"></a>00426 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="group__header.html#gab2ead5204f382040cd30cd4be1688990" title="Return header instance, ie is the header from rpmdb.">headerGetInstance</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h);
<a name="l00427"></a>00427 
<a name="l00428"></a><a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839">00428</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839">headerConvOps_e</a> {
<a name="l00429"></a><a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839a1332e8907883912824561e32db69b1f7">00429</a>     <a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839a1332e8907883912824561e32db69b1f7">HEADERCONV_EXPANDFILELIST</a>   = 0,
<a name="l00430"></a><a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839ae4ade8ae64f654af5e6767e2b9ec9d4d">00430</a>     <a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839ae4ade8ae64f654af5e6767e2b9ec9d4d">HEADERCONV_COMPRESSFILELIST</a> = 1,
<a name="l00431"></a><a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839abedf5e7c47c1bcbf08df700f9d734c13">00431</a>     <a class="code" href="header_8h.html#a2040f1d570fb4da3b9eed9f136f49839abedf5e7c47c1bcbf08df700f9d734c13">HEADERCONV_RETROFIT_V3</a>      = 2,
<a name="l00432"></a>00432 } <a class="code" href="header_8h.html#ab81daf21bb30b7973d62048d77f08c04">headerConvOps</a>;
<a name="l00433"></a>00433 
<a name="l00440"></a>00440 <span class="keywordtype">int</span> <a class="code" href="group__header.html#gab88b5e1beaad76593a9488f4d6690c9c" title="Convert header to/from (legacy) data presentation.">headerConvert</a>(<a class="code" href="group__rpmtypes.html#gacb1ffe4e2d96b8277f9f46ecc0c7b8a6" title="RPM header and data retrieval types.">Header</a> h, <span class="keywordtype">int</span> op);
<a name="l00441"></a>00441 
<a name="l00442"></a>00442 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00443"></a>00443 <span class="preprocessor"></span>}
<a name="l00444"></a>00444 <span class="preprocessor">#endif</span>
<a name="l00445"></a>00445 <span class="preprocessor"></span>
<a name="l00446"></a>00446 <span class="preprocessor">#endif  </span><span class="comment">/* H_HEADER */</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Jul 15 2011 for rpm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>