| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>Output to unstructured files: GSF Reference Manual</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 |
<link rel="home" href="index.html" title="GSF Reference Manual"> |
| 8 |
<link rel="up" href="io.html" title="Basic Input/Output"> |
| 9 |
<link rel="prev" href="gsf-Input-from-unstructured-files.html" title="Input from unstructured files"> |
| 10 |
<link rel="next" href="sources.html" title="Stream Sources"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.34.0 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 |
<td width="100%" align="left" class="shortcuts"> |
| 17 |
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 |
<a href="#gsf-Output-to-unstructured-files.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> |
| 19 |
<a href="#gsf-Output-to-unstructured-files.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties"> <span class="dim">|</span> |
| 20 |
<a href="#gsf-Output-to-unstructured-files.properties" class="shortcut">Properties</a></span> |
| 21 |
</td> |
| 22 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 23 |
<td><a accesskey="u" href="io.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 24 |
<td><a accesskey="p" href="gsf-Input-from-unstructured-files.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 25 |
<td><a accesskey="n" href="sources.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 26 |
</tr></table> |
| 27 |
<div class="refentry"> |
| 28 |
<a name="gsf-Output-to-unstructured-files"></a><div class="titlepage"></div> |
| 29 |
<div class="refnamediv"><table width="100%"><tr> |
| 30 |
<td valign="top"> |
| 31 |
<h2><span class="refentrytitle"><a name="gsf-Output-to-unstructured-files.top_of_page"></a>Output to unstructured files</span></h2> |
| 32 |
<p>Output to unstructured files</p> |
| 33 |
</td> |
| 34 |
<td class="gallery_image" valign="top" align="right"></td> |
| 35 |
</tr></table></div> |
| 36 |
<div class="refsect1"> |
| 37 |
<a name="gsf-Output-to-unstructured-files.functions"></a><h2>Functions</h2> |
| 38 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 39 |
<colgroup> |
| 40 |
<col width="150px" class="functions_proto_type"> |
| 41 |
<col class="functions_proto_name"> |
| 42 |
</colgroup> |
| 43 |
<tbody> |
| 44 |
<tr> |
| 45 |
<td class="function_type"> |
| 46 |
<a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a> |
| 47 |
</td> |
| 48 |
<td class="function_name"> |
| 49 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-size" title="gsf_output_size ()">gsf_output_size</a> <span class="c_punctuation">()</span> |
| 50 |
</td> |
| 51 |
</tr> |
| 52 |
<tr> |
| 53 |
<td class="function_type"> |
| 54 |
<span class="returnvalue">gboolean</span> |
| 55 |
</td> |
| 56 |
<td class="function_name"> |
| 57 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-close" title="gsf_output_close ()">gsf_output_close</a> <span class="c_punctuation">()</span> |
| 58 |
</td> |
| 59 |
</tr> |
| 60 |
<tr> |
| 61 |
<td class="function_type"> |
| 62 |
<a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a> |
| 63 |
</td> |
| 64 |
<td class="function_name"> |
| 65 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-tell" title="gsf_output_tell ()">gsf_output_tell</a> <span class="c_punctuation">()</span> |
| 66 |
</td> |
| 67 |
</tr> |
| 68 |
<tr> |
| 69 |
<td class="function_type"> |
| 70 |
<span class="returnvalue">gboolean</span> |
| 71 |
</td> |
| 72 |
<td class="function_name"> |
| 73 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-seek" title="gsf_output_seek ()">gsf_output_seek</a> <span class="c_punctuation">()</span> |
| 74 |
</td> |
| 75 |
</tr> |
| 76 |
<tr> |
| 77 |
<td class="function_type"> |
| 78 |
<span class="returnvalue">gboolean</span> |
| 79 |
</td> |
| 80 |
<td class="function_name"> |
| 81 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-write" title="gsf_output_write ()">gsf_output_write</a> <span class="c_punctuation">()</span> |
| 82 |
</td> |
| 83 |
</tr> |
| 84 |
<tr> |
| 85 |
<td class="function_type"> |
| 86 |
<span class="returnvalue">gboolean</span> |
| 87 |
</td> |
| 88 |
<td class="function_name"> |
| 89 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-puts" title="gsf_output_puts ()">gsf_output_puts</a> <span class="c_punctuation">()</span> |
| 90 |
</td> |
| 91 |
</tr> |
| 92 |
<tr> |
| 93 |
<td class="function_type"> |
| 94 |
<span class="returnvalue">gboolean</span> |
| 95 |
</td> |
| 96 |
<td class="function_name"> |
| 97 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-printf" title="gsf_output_printf ()">gsf_output_printf</a> <span class="c_punctuation">()</span> |
| 98 |
</td> |
| 99 |
</tr> |
| 100 |
<tr> |
| 101 |
<td class="function_type"> |
| 102 |
<a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a> |
| 103 |
</td> |
| 104 |
<td class="function_name"> |
| 105 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-vprintf" title="gsf_output_vprintf ()">gsf_output_vprintf</a> <span class="c_punctuation">()</span> |
| 106 |
</td> |
| 107 |
</tr> |
| 108 |
<tr> |
| 109 |
<td class="function_type"> |
| 110 |
<a class="link" href="gsf-Outfile-writing-structed-files.html#GsfOutfile"><span class="returnvalue">GsfOutfile</span></a> * |
| 111 |
</td> |
| 112 |
<td class="function_name"> |
| 113 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-container" title="gsf_output_container ()">gsf_output_container</a> <span class="c_punctuation">()</span> |
| 114 |
</td> |
| 115 |
</tr> |
| 116 |
<tr> |
| 117 |
<td class="function_type"> |
| 118 |
<span class="returnvalue">char</span> const * |
| 119 |
</td> |
| 120 |
<td class="function_name"> |
| 121 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-name" title="gsf_output_name ()">gsf_output_name</a> <span class="c_punctuation">()</span> |
| 122 |
</td> |
| 123 |
</tr> |
| 124 |
<tr> |
| 125 |
<td class="function_type"> |
| 126 |
<span class="returnvalue">gboolean</span> |
| 127 |
</td> |
| 128 |
<td class="function_name"> |
| 129 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-set-name-from-filename" title="gsf_output_set_name_from_filename ()">gsf_output_set_name_from_filename</a> <span class="c_punctuation">()</span> |
| 130 |
</td> |
| 131 |
</tr> |
| 132 |
<tr> |
| 133 |
<td class="function_type"> |
| 134 |
<span class="returnvalue">GQuark</span> |
| 135 |
</td> |
| 136 |
<td class="function_name"> |
| 137 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-error-id" title="gsf_output_error_id ()">gsf_output_error_id</a> <span class="c_punctuation">()</span> |
| 138 |
</td> |
| 139 |
</tr> |
| 140 |
<tr> |
| 141 |
<td class="function_type"> |
| 142 |
<span class="returnvalue">gboolean</span> |
| 143 |
</td> |
| 144 |
<td class="function_name"> |
| 145 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-set-error" title="gsf_output_set_error ()">gsf_output_set_error</a> <span class="c_punctuation">()</span> |
| 146 |
</td> |
| 147 |
</tr> |
| 148 |
<tr> |
| 149 |
<td class="function_type"> |
| 150 |
<span class="returnvalue">GError</span> const * |
| 151 |
</td> |
| 152 |
<td class="function_name"> |
| 153 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-error" title="gsf_output_error ()">gsf_output_error</a> <span class="c_punctuation">()</span> |
| 154 |
</td> |
| 155 |
</tr> |
| 156 |
<tr> |
| 157 |
<td class="function_type"> |
| 158 |
<span class="returnvalue">gboolean</span> |
| 159 |
</td> |
| 160 |
<td class="function_name"> |
| 161 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-is-closed" title="gsf_output_is_closed ()">gsf_output_is_closed</a> <span class="c_punctuation">()</span> |
| 162 |
</td> |
| 163 |
</tr> |
| 164 |
<tr> |
| 165 |
<td class="function_type"> |
| 166 |
<span class="returnvalue">gboolean</span> |
| 167 |
</td> |
| 168 |
<td class="function_name"> |
| 169 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-wrap" title="gsf_output_wrap ()">gsf_output_wrap</a> <span class="c_punctuation">()</span> |
| 170 |
</td> |
| 171 |
</tr> |
| 172 |
<tr> |
| 173 |
<td class="function_type"> |
| 174 |
<span class="returnvalue">gboolean</span> |
| 175 |
</td> |
| 176 |
<td class="function_name"> |
| 177 |
<a class="link" href="gsf-Output-to-unstructured-files.html#gsf-output-unwrap" title="gsf_output_unwrap ()">gsf_output_unwrap</a> <span class="c_punctuation">()</span> |
| 178 |
</td> |
| 179 |
</tr> |
| 180 |
</tbody> |
| 181 |
</table></div> |
| 182 |
</div> |
| 183 |
<div class="refsect1"> |
| 184 |
<a name="gsf-Output-to-unstructured-files.properties"></a><h2>Properties</h2> |
| 185 |
<div class="informaltable"><table class="informaltable" border="0"> |
| 186 |
<colgroup> |
| 187 |
<col width="150px" class="properties_type"> |
| 188 |
<col width="300px" class="properties_name"> |
| 189 |
<col width="200px" class="properties_flags"> |
| 190 |
</colgroup> |
| 191 |
<tbody> |
| 192 |
<tr> |
| 193 |
<td class="property_type"> |
| 194 |
<a class="link" href="gsf-Outfile-writing-structed-files.html#GsfOutfile"><span class="type">GsfOutfile</span></a> *</td> |
| 195 |
<td class="property_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput--container" title="The “container” property">container</a></td> |
| 196 |
<td class="property_flags">Read / Write</td> |
| 197 |
</tr> |
| 198 |
<tr> |
| 199 |
<td class="property_type"><span class="type">gboolean</span></td> |
| 200 |
<td class="property_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput--is-closed" title="The “is-closed” property">is-closed</a></td> |
| 201 |
<td class="property_flags">Read</td> |
| 202 |
</tr> |
| 203 |
<tr> |
| 204 |
<td class="property_type"> |
| 205 |
<span class="type">GDateTime</span> *</td> |
| 206 |
<td class="property_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput--modtime" title="The “modtime” property">modtime</a></td> |
| 207 |
<td class="property_flags">Read / Write / Construct Only</td> |
| 208 |
</tr> |
| 209 |
<tr> |
| 210 |
<td class="property_type"> |
| 211 |
<span class="type">char</span> *</td> |
| 212 |
<td class="property_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput--name" title="The “name” property">name</a></td> |
| 213 |
<td class="property_flags">Read / Write</td> |
| 214 |
</tr> |
| 215 |
<tr> |
| 216 |
<td class="property_type"><span class="type">gint64</span></td> |
| 217 |
<td class="property_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput--position" title="The “position” property">position</a></td> |
| 218 |
<td class="property_flags">Read</td> |
| 219 |
</tr> |
| 220 |
<tr> |
| 221 |
<td class="property_type"><span class="type">gint64</span></td> |
| 222 |
<td class="property_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput--size" title="The “size” property">size</a></td> |
| 223 |
<td class="property_flags">Read</td> |
| 224 |
</tr> |
| 225 |
</tbody> |
| 226 |
</table></div> |
| 227 |
</div> |
| 228 |
<a name="GsfOutput"></a><div class="refsect1"> |
| 229 |
<a name="gsf-Output-to-unstructured-files.other"></a><h2>Types and Values</h2> |
| 230 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 231 |
<colgroup> |
| 232 |
<col width="150px" class="other_proto_type"> |
| 233 |
<col class="other_proto_name"> |
| 234 |
</colgroup> |
| 235 |
<tbody><tr> |
| 236 |
<td class="datatype_keyword"> </td> |
| 237 |
<td class="function_name"><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput-struct" title="GsfOutput">GsfOutput</a></td> |
| 238 |
</tr></tbody> |
| 239 |
</table></div> |
| 240 |
</div> |
| 241 |
<div class="refsect1"> |
| 242 |
<a name="gsf-Output-to-unstructured-files.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 243 |
<pre class="screen"> GObject |
| 244 |
<span class="lineart">╰──</span> GsfOutput |
| 245 |
<span class="lineart">├──</span> <a class="link" href="gsf-Compression.html#GsfOutputBzip">GsfOutputBzip</a> |
| 246 |
<span class="lineart">├──</span> <a class="link" href="gsf-Text.html#GsfOutputCsv">GsfOutputCsv</a> |
| 247 |
<span class="lineart">├──</span> <a class="link" href="gsf-Compression.html#GsfOutputGZip">GsfOutputGZip</a> |
| 248 |
<span class="lineart">├──</span> <a class="link" href="gsf-Text.html#GsfOutputIconv">GsfOutputIconv</a> |
| 249 |
<span class="lineart">├──</span> <a class="link" href="gsf-GIOChannel.html#GsfOutputIOChannel">GsfOutputIOChannel</a> |
| 250 |
<span class="lineart">├──</span> <a class="link" href="gsf-memory.html#GsfOutputMemory">GsfOutputMemory</a> |
| 251 |
<span class="lineart">├──</span> <a class="link" href="gsf-Reading-and-Writing-from-local-files-and-directories.html#GsfOutputStdio">GsfOutputStdio</a> |
| 252 |
<span class="lineart">╰──</span> <a class="link" href="gsf-Outfile-writing-structed-files.html#GsfOutfile">GsfOutfile</a> |
| 253 |
</pre> |
| 254 |
</div> |
| 255 |
<div class="refsect1"> |
| 256 |
<a name="gsf-Output-to-unstructured-files.description"></a><h2>Description</h2> |
| 257 |
</div> |
| 258 |
<div class="refsect1"> |
| 259 |
<a name="gsf-Output-to-unstructured-files.functions_details"></a><h2>Functions</h2> |
| 260 |
<div class="refsect2"> |
| 261 |
<a name="gsf-output-size"></a><h3>gsf_output_size ()</h3> |
| 262 |
<pre class="programlisting"><a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a> |
| 263 |
gsf_output_size (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>);</pre> |
| 264 |
<p>Determine the size of the output stream <em class="parameter"><code>output</code></em> |
| 265 |
.</p> |
| 266 |
<div class="refsect3"> |
| 267 |
<a name="gsf-output-size.parameters"></a><h4>Parameters</h4> |
| 268 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 269 |
<colgroup> |
| 270 |
<col width="150px" class="parameters_name"> |
| 271 |
<col class="parameters_description"> |
| 272 |
<col width="200px" class="parameters_annotations"> |
| 273 |
</colgroup> |
| 274 |
<tbody><tr> |
| 275 |
<td class="parameter_name"><p>output</p></td> |
| 276 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 277 |
<td class="parameter_annotations"> </td> |
| 278 |
</tr></tbody> |
| 279 |
</table></div> |
| 280 |
</div> |
| 281 |
<div class="refsect3"> |
| 282 |
<a name="gsf-output-size.returns"></a><h4>Returns</h4> |
| 283 |
<p> the size of the output, or -1 if it does not have a size.</p> |
| 284 |
</div> |
| 285 |
</div> |
| 286 |
<hr> |
| 287 |
<div class="refsect2"> |
| 288 |
<a name="gsf-output-close"></a><h3>gsf_output_close ()</h3> |
| 289 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 290 |
gsf_output_close (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>);</pre> |
| 291 |
<p>Close a stream.</p> |
| 292 |
<p><span class="annotation">[<acronym title="This is the invoker for a virtual method."><span class="acronym">virtual</span></acronym> Close]</span></p> |
| 293 |
<div class="refsect3"> |
| 294 |
<a name="gsf-output-close.parameters"></a><h4>Parameters</h4> |
| 295 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 296 |
<colgroup> |
| 297 |
<col width="150px" class="parameters_name"> |
| 298 |
<col class="parameters_description"> |
| 299 |
<col width="200px" class="parameters_annotations"> |
| 300 |
</colgroup> |
| 301 |
<tbody><tr> |
| 302 |
<td class="parameter_name"><p>output</p></td> |
| 303 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 304 |
<td class="parameter_annotations"> </td> |
| 305 |
</tr></tbody> |
| 306 |
</table></div> |
| 307 |
</div> |
| 308 |
<div class="refsect3"> |
| 309 |
<a name="gsf-output-close.returns"></a><h4>Returns</h4> |
| 310 |
<p> <code class="literal">FALSE</code> on error</p> |
| 311 |
</div> |
| 312 |
</div> |
| 313 |
<hr> |
| 314 |
<div class="refsect2"> |
| 315 |
<a name="gsf-output-tell"></a><h3>gsf_output_tell ()</h3> |
| 316 |
<pre class="programlisting"><a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a> |
| 317 |
gsf_output_tell (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>);</pre> |
| 318 |
<p>Tell the current position in <em class="parameter"><code>output</code></em> |
| 319 |
, similar to</p> |
| 320 |
<span class="citerefentry"><span class="refentrytitle">ftell</span>(3)</span>. |
| 321 |
<div class="refsect3"> |
| 322 |
<a name="gsf-output-tell.parameters"></a><h4>Parameters</h4> |
| 323 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 324 |
<colgroup> |
| 325 |
<col width="150px" class="parameters_name"> |
| 326 |
<col class="parameters_description"> |
| 327 |
<col width="200px" class="parameters_annotations"> |
| 328 |
</colgroup> |
| 329 |
<tbody><tr> |
| 330 |
<td class="parameter_name"><p>output</p></td> |
| 331 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 332 |
<td class="parameter_annotations"> </td> |
| 333 |
</tr></tbody> |
| 334 |
</table></div> |
| 335 |
</div> |
| 336 |
<div class="refsect3"> |
| 337 |
<a name="gsf-output-tell.returns"></a><h4>Returns</h4> |
| 338 |
<p> the current position in the file</p> |
| 339 |
</div> |
| 340 |
</div> |
| 341 |
<hr> |
| 342 |
<div class="refsect2"> |
| 343 |
<a name="gsf-output-seek"></a><h3>gsf_output_seek ()</h3> |
| 344 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 345 |
gsf_output_seek (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 346 |
<em class="parameter"><code><a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="type">gsf_off_t</span></a> offset</code></em>, |
| 347 |
<em class="parameter"><code><span class="type">GSeekType</span> whence</code></em>);</pre> |
| 348 |
<p>Reposition in output stream <em class="parameter"><code>output</code></em> |
| 349 |
. <em class="parameter"><code>whence</code></em> |
| 350 |
specifies what the offset is |
| 351 |
relative to: the beginning of the stream (<code class="literal">G_SEEK_SET</code>), current position in |
| 352 |
the stream (<code class="literal">G_SEEK_CUR</code>) or the end of the stream (<code class="literal">G_SEEK_END</code>). |
| 353 |
This function is similar to</p> |
| 354 |
<span class="citerefentry"><span class="refentrytitle">fseek</span>(3)</span>. |
| 355 |
|
| 356 |
<p><span class="annotation">[<acronym title="This is the invoker for a virtual method."><span class="acronym">virtual</span></acronym> Seek]</span></p> |
| 357 |
<div class="refsect3"> |
| 358 |
<a name="gsf-output-seek.parameters"></a><h4>Parameters</h4> |
| 359 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 360 |
<colgroup> |
| 361 |
<col width="150px" class="parameters_name"> |
| 362 |
<col class="parameters_description"> |
| 363 |
<col width="200px" class="parameters_annotations"> |
| 364 |
</colgroup> |
| 365 |
<tbody> |
| 366 |
<tr> |
| 367 |
<td class="parameter_name"><p>output</p></td> |
| 368 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 369 |
<td class="parameter_annotations"> </td> |
| 370 |
</tr> |
| 371 |
<tr> |
| 372 |
<td class="parameter_name"><p>offset</p></td> |
| 373 |
<td class="parameter_description"><p>Relative amount to reposition</p></td> |
| 374 |
<td class="parameter_annotations"> </td> |
| 375 |
</tr> |
| 376 |
<tr> |
| 377 |
<td class="parameter_name"><p>whence</p></td> |
| 378 |
<td class="parameter_description"><p>What the offset is relative to.</p></td> |
| 379 |
<td class="parameter_annotations"> </td> |
| 380 |
</tr> |
| 381 |
</tbody> |
| 382 |
</table></div> |
| 383 |
</div> |
| 384 |
<div class="refsect3"> |
| 385 |
<a name="gsf-output-seek.returns"></a><h4>Returns</h4> |
| 386 |
<p> <code class="literal">FALSE</code> on error.</p> |
| 387 |
</div> |
| 388 |
</div> |
| 389 |
<hr> |
| 390 |
<div class="refsect2"> |
| 391 |
<a name="gsf-output-write"></a><h3>gsf_output_write ()</h3> |
| 392 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 393 |
gsf_output_write (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 394 |
<em class="parameter"><code><span class="type">size_t</span> num_bytes</code></em>, |
| 395 |
<em class="parameter"><code><span class="type">guint8</span> const *data</code></em>);</pre> |
| 396 |
<p>Write <em class="parameter"><code>num_bytes</code></em> |
| 397 |
of <em class="parameter"><code>data</code></em> |
| 398 |
to <em class="parameter"><code>output</code></em> |
| 399 |
.</p> |
| 400 |
<p><span class="annotation">[<acronym title="This is the invoker for a virtual method."><span class="acronym">virtual</span></acronym> Write]</span></p> |
| 401 |
<div class="refsect3"> |
| 402 |
<a name="gsf-output-write.parameters"></a><h4>Parameters</h4> |
| 403 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 404 |
<colgroup> |
| 405 |
<col width="150px" class="parameters_name"> |
| 406 |
<col class="parameters_description"> |
| 407 |
<col width="200px" class="parameters_annotations"> |
| 408 |
</colgroup> |
| 409 |
<tbody> |
| 410 |
<tr> |
| 411 |
<td class="parameter_name"><p>output</p></td> |
| 412 |
<td class="parameter_description"><p>Output stream</p></td> |
| 413 |
<td class="parameter_annotations"> </td> |
| 414 |
</tr> |
| 415 |
<tr> |
| 416 |
<td class="parameter_name"><p>num_bytes</p></td> |
| 417 |
<td class="parameter_description"><p>Number of bytes to write</p></td> |
| 418 |
<td class="parameter_annotations"> </td> |
| 419 |
</tr> |
| 420 |
<tr> |
| 421 |
<td class="parameter_name"><p>data</p></td> |
| 422 |
<td class="parameter_description"><p>Data to write. </p></td> |
| 423 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input. Default is transfer none."><span class="acronym">in</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_bytes]</span></td> |
| 424 |
</tr> |
| 425 |
</tbody> |
| 426 |
</table></div> |
| 427 |
</div> |
| 428 |
<div class="refsect3"> |
| 429 |
<a name="gsf-output-write.returns"></a><h4>Returns</h4> |
| 430 |
<p> <code class="literal">FALSE</code> on error.</p> |
| 431 |
</div> |
| 432 |
</div> |
| 433 |
<hr> |
| 434 |
<div class="refsect2"> |
| 435 |
<a name="gsf-output-puts"></a><h3>gsf_output_puts ()</h3> |
| 436 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 437 |
gsf_output_puts (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 438 |
<em class="parameter"><code><span class="type">char</span> const *line</code></em>);</pre> |
| 439 |
<p>Like fputs, this assumes that the line already ends with a newline</p> |
| 440 |
<div class="refsect3"> |
| 441 |
<a name="gsf-output-puts.parameters"></a><h4>Parameters</h4> |
| 442 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 443 |
<colgroup> |
| 444 |
<col width="150px" class="parameters_name"> |
| 445 |
<col class="parameters_description"> |
| 446 |
<col width="200px" class="parameters_annotations"> |
| 447 |
</colgroup> |
| 448 |
<tbody> |
| 449 |
<tr> |
| 450 |
<td class="parameter_name"><p>output</p></td> |
| 451 |
<td class="parameter_description"><p>A <a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 452 |
<td class="parameter_annotations"> </td> |
| 453 |
</tr> |
| 454 |
<tr> |
| 455 |
<td class="parameter_name"><p>line</p></td> |
| 456 |
<td class="parameter_description"><p>Nul terminated string to write</p></td> |
| 457 |
<td class="parameter_annotations"> </td> |
| 458 |
</tr> |
| 459 |
</tbody> |
| 460 |
</table></div> |
| 461 |
</div> |
| 462 |
<div class="refsect3"> |
| 463 |
<a name="gsf-output-puts.returns"></a><h4>Returns</h4> |
| 464 |
<p> <code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> if not</p> |
| 465 |
</div> |
| 466 |
</div> |
| 467 |
<hr> |
| 468 |
<div class="refsect2"> |
| 469 |
<a name="gsf-output-printf"></a><h3>gsf_output_printf ()</h3> |
| 470 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 471 |
gsf_output_printf (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 472 |
<em class="parameter"><code><span class="type">char</span> const *format</code></em>, |
| 473 |
<em class="parameter"><code>...</code></em>);</pre> |
| 474 |
<p>Output <em class="parameter"><code>Varargs</code></em> |
| 475 |
to <em class="parameter"><code>output</code></em> |
| 476 |
using the format string <em class="parameter"><code>format</code></em> |
| 477 |
, similar to</p> |
| 478 |
<span class="citerefentry"><span class="refentrytitle">printf</span>(3)</span>. |
| 479 |
<div class="refsect3"> |
| 480 |
<a name="gsf-output-printf.parameters"></a><h4>Parameters</h4> |
| 481 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 482 |
<colgroup> |
| 483 |
<col width="150px" class="parameters_name"> |
| 484 |
<col class="parameters_description"> |
| 485 |
<col width="200px" class="parameters_annotations"> |
| 486 |
</colgroup> |
| 487 |
<tbody> |
| 488 |
<tr> |
| 489 |
<td class="parameter_name"><p>output</p></td> |
| 490 |
<td class="parameter_description"><p>A <a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 491 |
<td class="parameter_annotations"> </td> |
| 492 |
</tr> |
| 493 |
<tr> |
| 494 |
<td class="parameter_name"><p>format</p></td> |
| 495 |
<td class="parameter_description"><p>The printf-style format string</p></td> |
| 496 |
<td class="parameter_annotations"> </td> |
| 497 |
</tr> |
| 498 |
<tr> |
| 499 |
<td class="parameter_name"><p>...</p></td> |
| 500 |
<td class="parameter_description"><p>the arguments for <em class="parameter"><code>format</code></em> |
| 501 |
</p></td> |
| 502 |
<td class="parameter_annotations"> </td> |
| 503 |
</tr> |
| 504 |
</tbody> |
| 505 |
</table></div> |
| 506 |
</div> |
| 507 |
<div class="refsect3"> |
| 508 |
<a name="gsf-output-printf.returns"></a><h4>Returns</h4> |
| 509 |
<p> <code class="literal">TRUE</code> if successful, <code class="literal">FALSE</code> if not</p> |
| 510 |
</div> |
| 511 |
</div> |
| 512 |
<hr> |
| 513 |
<div class="refsect2"> |
| 514 |
<a name="gsf-output-vprintf"></a><h3>gsf_output_vprintf ()</h3> |
| 515 |
<pre class="programlisting"><a class="link" href="gsf-Utilities.html#gsf-off-t" title="gsf_off_t"><span class="returnvalue">gsf_off_t</span></a> |
| 516 |
gsf_output_vprintf (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 517 |
<em class="parameter"><code><span class="type">char</span> const *format</code></em>, |
| 518 |
<em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre> |
| 519 |
<p>Output <em class="parameter"><code>args</code></em> |
| 520 |
to <em class="parameter"><code>output</code></em> |
| 521 |
using the format string <em class="parameter"><code>format</code></em> |
| 522 |
, similar to</p> |
| 523 |
<span class="citerefentry"><span class="refentrytitle">vprintf</span>(3)</span>. |
| 524 |
|
| 525 |
<p><span class="annotation">[<acronym title="This is the invoker for a virtual method."><span class="acronym">virtual</span></acronym> Vprintf]</span></p> |
| 526 |
<div class="refsect3"> |
| 527 |
<a name="gsf-output-vprintf.parameters"></a><h4>Parameters</h4> |
| 528 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 529 |
<colgroup> |
| 530 |
<col width="150px" class="parameters_name"> |
| 531 |
<col class="parameters_description"> |
| 532 |
<col width="200px" class="parameters_annotations"> |
| 533 |
</colgroup> |
| 534 |
<tbody> |
| 535 |
<tr> |
| 536 |
<td class="parameter_name"><p>output</p></td> |
| 537 |
<td class="parameter_description"><p>A <a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 538 |
<td class="parameter_annotations"> </td> |
| 539 |
</tr> |
| 540 |
<tr> |
| 541 |
<td class="parameter_name"><p>format</p></td> |
| 542 |
<td class="parameter_description"><p>The printf-style format string</p></td> |
| 543 |
<td class="parameter_annotations"> </td> |
| 544 |
</tr> |
| 545 |
<tr> |
| 546 |
<td class="parameter_name"><p>args</p></td> |
| 547 |
<td class="parameter_description"><p>the arguments for <em class="parameter"><code>format</code></em> |
| 548 |
</p></td> |
| 549 |
<td class="parameter_annotations"> </td> |
| 550 |
</tr> |
| 551 |
</tbody> |
| 552 |
</table></div> |
| 553 |
</div> |
| 554 |
<div class="refsect3"> |
| 555 |
<a name="gsf-output-vprintf.returns"></a><h4>Returns</h4> |
| 556 |
<p> number of bytes printed, a negative value if not successful</p> |
| 557 |
</div> |
| 558 |
</div> |
| 559 |
<hr> |
| 560 |
<div class="refsect2"> |
| 561 |
<a name="gsf-output-container"></a><h3>gsf_output_container ()</h3> |
| 562 |
<pre class="programlisting"><a class="link" href="gsf-Outfile-writing-structed-files.html#GsfOutfile"><span class="returnvalue">GsfOutfile</span></a> * |
| 563 |
gsf_output_container (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> const *output</code></em>);</pre> |
| 564 |
<div class="refsect3"> |
| 565 |
<a name="gsf-output-container.returns"></a><h4>Returns</h4> |
| 566 |
<p><em class="parameter"><code>output</code></em> |
| 567 |
's container. </p> |
| 568 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 569 |
</div> |
| 570 |
</div> |
| 571 |
<hr> |
| 572 |
<div class="refsect2"> |
| 573 |
<a name="gsf-output-name"></a><h3>gsf_output_name ()</h3> |
| 574 |
<pre class="programlisting"><span class="returnvalue">char</span> const * |
| 575 |
gsf_output_name (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> const *output</code></em>);</pre> |
| 576 |
<p>Give the name of <em class="parameter"><code>output</code></em> |
| 577 |
.</p> |
| 578 |
<div class="refsect3"> |
| 579 |
<a name="gsf-output-name.parameters"></a><h4>Parameters</h4> |
| 580 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 581 |
<colgroup> |
| 582 |
<col width="150px" class="parameters_name"> |
| 583 |
<col class="parameters_description"> |
| 584 |
<col width="200px" class="parameters_annotations"> |
| 585 |
</colgroup> |
| 586 |
<tbody><tr> |
| 587 |
<td class="parameter_name"><p>output</p></td> |
| 588 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 589 |
<td class="parameter_annotations"> </td> |
| 590 |
</tr></tbody> |
| 591 |
</table></div> |
| 592 |
</div> |
| 593 |
<div class="refsect3"> |
| 594 |
<a name="gsf-output-name.returns"></a><h4>Returns</h4> |
| 595 |
<p><em class="parameter"><code>output</code></em> |
| 596 |
's name in utf8 form. </p> |
| 597 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 598 |
</div> |
| 599 |
</div> |
| 600 |
<hr> |
| 601 |
<div class="refsect2"> |
| 602 |
<a name="gsf-output-set-name-from-filename"></a><h3>gsf_output_set_name_from_filename ()</h3> |
| 603 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 604 |
gsf_output_set_name_from_filename (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 605 |
<em class="parameter"><code><span class="type">char</span> const *filename</code></em>);</pre> |
| 606 |
<div class="note">This is a utility routine that should only be used by derived |
| 607 |
outputs.</div> |
| 608 |
<div class="refsect3"> |
| 609 |
<a name="gsf-output-set-name-from-filename.parameters"></a><h4>Parameters</h4> |
| 610 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 611 |
<colgroup> |
| 612 |
<col width="150px" class="parameters_name"> |
| 613 |
<col class="parameters_description"> |
| 614 |
<col width="200px" class="parameters_annotations"> |
| 615 |
</colgroup> |
| 616 |
<tbody> |
| 617 |
<tr> |
| 618 |
<td class="parameter_name"><p>output</p></td> |
| 619 |
<td class="parameter_description"><p>the output stream</p></td> |
| 620 |
<td class="parameter_annotations"> </td> |
| 621 |
</tr> |
| 622 |
<tr> |
| 623 |
<td class="parameter_name"><p>filename</p></td> |
| 624 |
<td class="parameter_description"><p>the (fs-sys encoded) filename. </p></td> |
| 625 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> |
| 626 |
</tr> |
| 627 |
</tbody> |
| 628 |
</table></div> |
| 629 |
</div> |
| 630 |
<div class="refsect3"> |
| 631 |
<a name="gsf-output-set-name-from-filename.returns"></a><h4>Returns</h4> |
| 632 |
<p> <code class="literal">TRUE</code> if the assignment was ok.</p> |
| 633 |
</div> |
| 634 |
</div> |
| 635 |
<hr> |
| 636 |
<div class="refsect2"> |
| 637 |
<a name="gsf-output-error-id"></a><h3>gsf_output_error_id ()</h3> |
| 638 |
<pre class="programlisting"><span class="returnvalue">GQuark</span> |
| 639 |
gsf_output_error_id (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> |
| 640 |
</div> |
| 641 |
<hr> |
| 642 |
<div class="refsect2"> |
| 643 |
<a name="gsf-output-set-error"></a><h3>gsf_output_set_error ()</h3> |
| 644 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 645 |
gsf_output_set_error (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *output</code></em>, |
| 646 |
<em class="parameter"><code><span class="type">gint</span> code</code></em>, |
| 647 |
<em class="parameter"><code><span class="type">char</span> const *format</code></em>, |
| 648 |
<em class="parameter"><code>...</code></em>);</pre> |
| 649 |
<div class="note">This is a utility routine that should only be used by derived |
| 650 |
outputs.</div> |
| 651 |
<div class="refsect3"> |
| 652 |
<a name="gsf-output-set-error.parameters"></a><h4>Parameters</h4> |
| 653 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 654 |
<colgroup> |
| 655 |
<col width="150px" class="parameters_name"> |
| 656 |
<col class="parameters_description"> |
| 657 |
<col width="200px" class="parameters_annotations"> |
| 658 |
</colgroup> |
| 659 |
<tbody> |
| 660 |
<tr> |
| 661 |
<td class="parameter_name"><p>output</p></td> |
| 662 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 663 |
<td class="parameter_annotations"> </td> |
| 664 |
</tr> |
| 665 |
<tr> |
| 666 |
<td class="parameter_name"><p>code</p></td> |
| 667 |
<td class="parameter_description"><p>The error id</p></td> |
| 668 |
<td class="parameter_annotations"> </td> |
| 669 |
</tr> |
| 670 |
<tr> |
| 671 |
<td class="parameter_name"><p>format</p></td> |
| 672 |
<td class="parameter_description"><p>printf style format string</p></td> |
| 673 |
<td class="parameter_annotations"> </td> |
| 674 |
</tr> |
| 675 |
<tr> |
| 676 |
<td class="parameter_name"><p>...</p></td> |
| 677 |
<td class="parameter_description"><p>arguments for <em class="parameter"><code>format</code></em> |
| 678 |
</p></td> |
| 679 |
<td class="parameter_annotations"> </td> |
| 680 |
</tr> |
| 681 |
</tbody> |
| 682 |
</table></div> |
| 683 |
</div> |
| 684 |
<div class="refsect3"> |
| 685 |
<a name="gsf-output-set-error.returns"></a><h4>Returns</h4> |
| 686 |
<p> Always returns <code class="literal">FALSE</code> to facilitate its use.</p> |
| 687 |
</div> |
| 688 |
</div> |
| 689 |
<hr> |
| 690 |
<div class="refsect2"> |
| 691 |
<a name="gsf-output-error"></a><h3>gsf_output_error ()</h3> |
| 692 |
<pre class="programlisting"><span class="returnvalue">GError</span> const * |
| 693 |
gsf_output_error (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> const *output</code></em>);</pre> |
| 694 |
<div class="refsect3"> |
| 695 |
<a name="gsf-output-error.returns"></a><h4>Returns</h4> |
| 696 |
<p>the last error logged on the output. </p> |
| 697 |
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p> |
| 698 |
</div> |
| 699 |
</div> |
| 700 |
<hr> |
| 701 |
<div class="refsect2"> |
| 702 |
<a name="gsf-output-is-closed"></a><h3>gsf_output_is_closed ()</h3> |
| 703 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 704 |
gsf_output_is_closed (<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> const *output</code></em>);</pre> |
| 705 |
<div class="refsect3"> |
| 706 |
<a name="gsf-output-is-closed.parameters"></a><h4>Parameters</h4> |
| 707 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 708 |
<colgroup> |
| 709 |
<col width="150px" class="parameters_name"> |
| 710 |
<col class="parameters_description"> |
| 711 |
<col width="200px" class="parameters_annotations"> |
| 712 |
</colgroup> |
| 713 |
<tbody><tr> |
| 714 |
<td class="parameter_name"><p>output</p></td> |
| 715 |
<td class="parameter_description"><p><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a></p></td> |
| 716 |
<td class="parameter_annotations"> </td> |
| 717 |
</tr></tbody> |
| 718 |
</table></div> |
| 719 |
</div> |
| 720 |
<div class="refsect3"> |
| 721 |
<a name="gsf-output-is-closed.returns"></a><h4>Returns</h4> |
| 722 |
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>output</code></em> |
| 723 |
has already been closed.</p> |
| 724 |
</div> |
| 725 |
</div> |
| 726 |
<hr> |
| 727 |
<div class="refsect2"> |
| 728 |
<a name="gsf-output-wrap"></a><h3>gsf_output_wrap ()</h3> |
| 729 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 730 |
gsf_output_wrap (<em class="parameter"><code><span class="type">GObject</span> *wrapper</code></em>, |
| 731 |
<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *wrapee</code></em>);</pre> |
| 732 |
<div class="refsect3"> |
| 733 |
<a name="gsf-output-wrap.returns"></a><h4>Returns</h4> |
| 734 |
<p> <code class="literal">TRUE</code> if the wrapping succeeded.</p> |
| 735 |
</div> |
| 736 |
</div> |
| 737 |
<hr> |
| 738 |
<div class="refsect2"> |
| 739 |
<a name="gsf-output-unwrap"></a><h3>gsf_output_unwrap ()</h3> |
| 740 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 741 |
gsf_output_unwrap (<em class="parameter"><code><span class="type">GObject</span> *wrapper</code></em>, |
| 742 |
<em class="parameter"><code><a class="link" href="gsf-Output-to-unstructured-files.html#GsfOutput"><span class="type">GsfOutput</span></a> *wrapee</code></em>);</pre> |
| 743 |
<div class="refsect3"> |
| 744 |
<a name="gsf-output-unwrap.returns"></a><h4>Returns</h4> |
| 745 |
<p> <code class="literal">TRUE</code> if the unwrapping succeeded.</p> |
| 746 |
</div> |
| 747 |
</div> |
| 748 |
</div> |
| 749 |
<div class="refsect1"> |
| 750 |
<a name="gsf-Output-to-unstructured-files.other_details"></a><h2>Types and Values</h2> |
| 751 |
<div class="refsect2"> |
| 752 |
<a name="GsfOutput-struct"></a><h3>GsfOutput</h3> |
| 753 |
<pre class="programlisting">typedef struct _GsfOutput GsfOutput;</pre> |
| 754 |
<p>Class representing an output stream, counterpart to <a class="link" href="gsf-Input-from-unstructured-files.html#GsfInput"><span class="type">GsfInput</span></a>.</p> |
| 755 |
</div> |
| 756 |
</div> |
| 757 |
<div class="refsect1"> |
| 758 |
<a name="gsf-Output-to-unstructured-files.property-details"></a><h2>Property Details</h2> |
| 759 |
<div class="refsect2"> |
| 760 |
<a name="GsfOutput--container"></a><h3>The <code class="literal">“container”</code> property</h3> |
| 761 |
<pre class="programlisting"> “container” <a class="link" href="gsf-Outfile-writing-structed-files.html#GsfOutfile"><span class="type">GsfOutfile</span></a> *</pre> |
| 762 |
<p>The container, optionally <code class="literal">NULL</code>, in which this output lives.</p> |
| 763 |
<p>Owner: GsfOutput</p> |
| 764 |
<p>Flags: Read / Write</p> |
| 765 |
</div> |
| 766 |
<hr> |
| 767 |
<div class="refsect2"> |
| 768 |
<a name="GsfOutput--is-closed"></a><h3>The <code class="literal">“is-closed”</code> property</h3> |
| 769 |
<pre class="programlisting"> “is-closed” <span class="type">gboolean</span></pre> |
| 770 |
<p><code class="literal">TRUE</code> if the output has been closed.</p> |
| 771 |
<p>Owner: GsfOutput</p> |
| 772 |
<p>Flags: Read</p> |
| 773 |
<p>Default value: FALSE</p> |
| 774 |
</div> |
| 775 |
<hr> |
| 776 |
<div class="refsect2"> |
| 777 |
<a name="GsfOutput--modtime"></a><h3>The <code class="literal">“modtime”</code> property</h3> |
| 778 |
<pre class="programlisting"> “modtime” <span class="type">GDateTime</span> *</pre> |
| 779 |
<p>The time the output was last updated. This must be set on object |
| 780 |
construction and represents the timestamp to put on the resulting |
| 781 |
file or <a class="link" href="gsf-Outfile-writing-structed-files.html#GsfOutfile"><span class="type">GsfOutfile</span></a> member. Not all derived classes will actually |
| 782 |
do anything with this property.</p> |
| 783 |
<p>Owner: GsfOutput</p> |
| 784 |
<p>Flags: Read / Write / Construct Only</p> |
| 785 |
</div> |
| 786 |
<hr> |
| 787 |
<div class="refsect2"> |
| 788 |
<a name="GsfOutput--name"></a><h3>The <code class="literal">“name”</code> property</h3> |
| 789 |
<pre class="programlisting"> “name” <span class="type">char</span> *</pre> |
| 790 |
<p>The output's name.</p> |
| 791 |
<p>Owner: GsfOutput</p> |
| 792 |
<p>Flags: Read / Write</p> |
| 793 |
<p>Default value: NULL</p> |
| 794 |
</div> |
| 795 |
<hr> |
| 796 |
<div class="refsect2"> |
| 797 |
<a name="GsfOutput--position"></a><h3>The <code class="literal">“position”</code> property</h3> |
| 798 |
<pre class="programlisting"> “position” <span class="type">gint64</span></pre> |
| 799 |
<p>The current position in the output.</p> |
| 800 |
<p>Owner: GsfOutput</p> |
| 801 |
<p>Flags: Read</p> |
| 802 |
<p>Allowed values: >= 0</p> |
| 803 |
<p>Default value: 0</p> |
| 804 |
</div> |
| 805 |
<hr> |
| 806 |
<div class="refsect2"> |
| 807 |
<a name="GsfOutput--size"></a><h3>The <code class="literal">“size”</code> property</h3> |
| 808 |
<pre class="programlisting"> “size” <span class="type">gint64</span></pre> |
| 809 |
<p>The current file size.</p> |
| 810 |
<p>Owner: GsfOutput</p> |
| 811 |
<p>Flags: Read</p> |
| 812 |
<p>Allowed values: >= 0</p> |
| 813 |
<p>Default value: 0</p> |
| 814 |
</div> |
| 815 |
</div> |
| 816 |
</div> |
| 817 |
<div class="footer"> |
| 818 |
<hr>Generated by GTK-Doc V1.34.0</div> |
| 819 |
</body> |
| 820 |
</html> |