annotate src/flac-1.2.1/doc/html/api/group__flac__metadata__level1.html @ 1:05aa0afa9217

Bring in flac, ogg, vorbis
author Chris Cannam
date Tue, 19 Mar 2013 17:37:49 +0000
parents
children
rev   line source
Chris@1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Chris@1 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
Chris@1 3 <title>FLAC: FLAC/metadata.h: metadata level 1 interface</title>
Chris@1 4 <link href="doxygen.css" rel="stylesheet" type="text/css">
Chris@1 5 </head><body>
Chris@1 6 <!-- Generated by Doxygen 1.4.2 -->
Chris@1 7 <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
Chris@1 8 <h1>FLAC/metadata.h: metadata level 1 interface<br>
Chris@1 9 <small>
Chris@1 10 [<a class="el" href="group__flac__metadata.html">FLAC/metadata.h: metadata interfaces</a>]</small>
Chris@1 11 </h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Chris@1 12 The level 1 interface provides read-write access to FLAC file metadata and operates directly on the FLAC file.
Chris@1 13 <p>
Chris@1 14 The general usage of this interface is:<p>
Chris@1 15 <ul>
Chris@1 16 <li>Create an iterator using <a class="el" href="group__flac__metadata__level1.html#ga2">FLAC__metadata_simple_iterator_new()</a></li><li>Attach it to a file using <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> and check the exit code. Call <a class="el" href="group__flac__metadata__level1.html#ga6">FLAC__metadata_simple_iterator_is_writable()</a> to see if the file is writable, or only read access is allowed.</li><li>Use <a class="el" href="group__flac__metadata__level1.html#ga7">FLAC__metadata_simple_iterator_next()</a> and <a class="el" href="group__flac__metadata__level1.html#ga8">FLAC__metadata_simple_iterator_prev()</a> to traverse the blocks. This is does not read the actual blocks themselves. <a class="el" href="group__flac__metadata__level1.html#ga7">FLAC__metadata_simple_iterator_next()</a> is relatively fast. <a class="el" href="group__flac__metadata__level1.html#ga8">FLAC__metadata_simple_iterator_prev()</a> is slower since it needs to search forward from the front of the file.</li><li>Use <a class="el" href="group__flac__metadata__level1.html#ga11">FLAC__metadata_simple_iterator_get_block_type()</a> or <a class="el" href="group__flac__metadata__level1.html#ga14">FLAC__metadata_simple_iterator_get_block()</a> to access the actual data at the current iterator position. The returned object is yours to modify and free.</li><li>Use <a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block()</a> to write a modified block back. You must have write permission to the original file. Make sure to read the whole comment to <a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block()</a> below.</li><li>Use <a class="el" href="group__flac__metadata__level1.html#ga16">FLAC__metadata_simple_iterator_insert_block_after()</a> to add new blocks. Use the object creation functions from <a class="el" href="group__flac__metadata__object.html">here </a> to generate new objects.</li><li>Use <a class="el" href="group__flac__metadata__level1.html#ga17">FLAC__metadata_simple_iterator_delete_block()</a> to remove the block currently referred to by the iterator, or replace it with padding.</li><li>Destroy the iterator with <a class="el" href="group__flac__metadata__level1.html#ga3">FLAC__metadata_simple_iterator_delete()</a> when finished.</li></ul>
Chris@1 17 <p>
Chris@1 18 <dl compact><dt><b>Note:</b></dt><dd>The FLAC file remains open the whole time between <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> and <a class="el" href="group__flac__metadata__level1.html#ga3">FLAC__metadata_simple_iterator_delete()</a>, so make sure you are not altering the file during this time.<p>
Chris@1 19 Do not modify the <em>is_last</em>, <em>length</em>, or <em>type</em> fields of returned <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> objects. These are managed automatically.<p>
Chris@1 20 If any of the modification functions (<a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block()</a>, <a class="el" href="group__flac__metadata__level1.html#ga17">FLAC__metadata_simple_iterator_delete_block()</a>, <a class="el" href="group__flac__metadata__level1.html#ga16">FLAC__metadata_simple_iterator_insert_block_after()</a>, etc.) return <code>false</code>, you should delete the iterator as it may no longer be valid. </dd></dl>
Chris@1 21
Chris@1 22 <p>
Chris@1 23 <table border="0" cellpadding="0" cellspacing="0">
Chris@1 24 <tr><td></td></tr>
Chris@1 25 <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
Chris@1 26 <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a></td></tr>
Chris@1 27
Chris@1 28 <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
Chris@1 29 <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga18">FLAC__Metadata_SimpleIteratorStatus</a> { <br>
Chris@1 30 &nbsp;&nbsp;<a class="el" href="group__flac__metadata__level1.html#gga18a5">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK</a> = 0,
Chris@1 31 <a class="el" href="group__flac__metadata__level1.html#gga18a6">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ILLEGAL_INPUT</a>,
Chris@1 32 <a class="el" href="group__flac__metadata__level1.html#gga18a7">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE</a>,
Chris@1 33 <a class="el" href="group__flac__metadata__level1.html#gga18a8">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_A_FLAC_FILE</a>,
Chris@1 34 <br>
Chris@1 35 &nbsp;&nbsp;<a class="el" href="group__flac__metadata__level1.html#gga18a9">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_WRITABLE</a>,
Chris@1 36 <a class="el" href="group__flac__metadata__level1.html#gga18a10">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_BAD_METADATA</a>,
Chris@1 37 <a class="el" href="group__flac__metadata__level1.html#gga18a11">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_READ_ERROR</a>,
Chris@1 38 <a class="el" href="group__flac__metadata__level1.html#gga18a12">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_SEEK_ERROR</a>,
Chris@1 39 <br>
Chris@1 40 &nbsp;&nbsp;<a class="el" href="group__flac__metadata__level1.html#gga18a13">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_WRITE_ERROR</a>,
Chris@1 41 <a class="el" href="group__flac__metadata__level1.html#gga18a14">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_RENAME_ERROR</a>,
Chris@1 42 <a class="el" href="group__flac__metadata__level1.html#gga18a15">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_UNLINK_ERROR</a>,
Chris@1 43 <a class="el" href="group__flac__metadata__level1.html#gga18a16">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_MEMORY_ALLOCATION_ERROR</a>,
Chris@1 44 <br>
Chris@1 45 &nbsp;&nbsp;<a class="el" href="group__flac__metadata__level1.html#gga18a17">FLAC__METADATA_SIMPLE_ITERATOR_STATUS_INTERNAL_ERROR</a>
Chris@1 46 <br>
Chris@1 47 }</td></tr>
Chris@1 48
Chris@1 49 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
Chris@1 50 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga2">FLAC__metadata_simple_iterator_new</a> (void)</td></tr>
Chris@1 51
Chris@1 52 <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga3">FLAC__metadata_simple_iterator_delete</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 53
Chris@1 54 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__metadata__level1.html#ga18">FLAC__Metadata_SimpleIteratorStatus</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga4">FLAC__metadata_simple_iterator_status</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 55
Chris@1 56 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator, const char *filename, FLAC__bool read_only, FLAC__bool preserve_file_stats)</td></tr>
Chris@1 57
Chris@1 58 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga6">FLAC__metadata_simple_iterator_is_writable</a> (const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 59
Chris@1 60 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga7">FLAC__metadata_simple_iterator_next</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 61
Chris@1 62 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga8">FLAC__metadata_simple_iterator_prev</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 63
Chris@1 64 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga9">FLAC__metadata_simple_iterator_is_last</a> (const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 65
Chris@1 66 <tr><td class="memItemLeft" nowrap align="right" valign="top">off_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga10">FLAC__metadata_simple_iterator_get_block_offset</a> (const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 67
Chris@1 68 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__flac__format.html#ga113">FLAC__MetadataType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga11">FLAC__metadata_simple_iterator_get_block_type</a> (const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 69
Chris@1 70 <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga12">FLAC__metadata_simple_iterator_get_block_length</a> (const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 71
Chris@1 72 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga13">FLAC__metadata_simple_iterator_get_application_id</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator, FLAC__byte *id)</td></tr>
Chris@1 73
Chris@1 74 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga14">FLAC__metadata_simple_iterator_get_block</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator)</td></tr>
Chris@1 75
Chris@1 76 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator, <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *block, FLAC__bool use_padding)</td></tr>
Chris@1 77
Chris@1 78 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga16">FLAC__metadata_simple_iterator_insert_block_after</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator, <a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *block, FLAC__bool use_padding)</td></tr>
Chris@1 79
Chris@1 80 <tr><td class="memItemLeft" nowrap align="right" valign="top">FLAC__bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga17">FLAC__metadata_simple_iterator_delete_block</a> (<a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *iterator, FLAC__bool use_padding)</td></tr>
Chris@1 81
Chris@1 82 <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
Chris@1 83 <tr><td class="memItemLeft" nowrap align="right" valign="top">const char *const&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__flac__metadata__level1.html#ga1">FLAC__Metadata_SimpleIteratorStatusString</a> []</td></tr>
Chris@1 84
Chris@1 85 </table>
Chris@1 86 <hr><h2>Typedef Documentation</h2>
Chris@1 87 <a class="anchor" name="ga0" doxytag="metadata.h::FLAC__Metadata_SimpleIterator"></a><p>
Chris@1 88 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 89 <tr>
Chris@1 90 <td class="mdRow">
Chris@1 91 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 92 <tr>
Chris@1 93 <td class="md" nowrap valign="top">typedef struct <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> </td>
Chris@1 94 </tr>
Chris@1 95 </table>
Chris@1 96 </td>
Chris@1 97 </tr>
Chris@1 98 </table>
Chris@1 99 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 100 <tr>
Chris@1 101 <td>
Chris@1 102 &nbsp;
Chris@1 103 </td>
Chris@1 104 <td>
Chris@1 105
Chris@1 106 <p>
Chris@1 107 The opaque structure definition for the level 1 iterator type. See the <a class="el" href="group__flac__metadata__level1.html">metadata level 1 module </a> for a detailed description. </td>
Chris@1 108 </tr>
Chris@1 109 </table>
Chris@1 110 <hr><h2>Enumeration Type Documentation</h2>
Chris@1 111 <a class="anchor" name="ga18" doxytag="metadata.h::FLAC__Metadata_SimpleIteratorStatus"></a><p>
Chris@1 112 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 113 <tr>
Chris@1 114 <td class="mdRow">
Chris@1 115 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 116 <tr>
Chris@1 117 <td class="md" nowrap valign="top">enum <a class="el" href="group__flac__metadata__level1.html#ga18">FLAC__Metadata_SimpleIteratorStatus</a> </td>
Chris@1 118 </tr>
Chris@1 119 </table>
Chris@1 120 </td>
Chris@1 121 </tr>
Chris@1 122 </table>
Chris@1 123 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 124 <tr>
Chris@1 125 <td>
Chris@1 126 &nbsp;
Chris@1 127 </td>
Chris@1 128 <td>
Chris@1 129
Chris@1 130 <p>
Chris@1 131 Status type for FLAC__Metadata_SimpleIterator.<p>
Chris@1 132 The iterator's current status can be obtained by calling <a class="el" href="group__flac__metadata__level1.html#ga4">FLAC__metadata_simple_iterator_status()</a>. <dl compact><dt><b>Enumeration values: </b></dt><dd>
Chris@1 133 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 134 <tr><td valign="top"><em><a class="anchor" name="gga18a5" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK</em>&nbsp;</td><td>
Chris@1 135 The iterator is in the normal OK state </td></tr>
Chris@1 136 <tr><td valign="top"><em><a class="anchor" name="gga18a6" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ILLEGAL_INPUT"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ILLEGAL_INPUT</em>&nbsp;</td><td>
Chris@1 137 The data passed into a function violated the function's usage criteria </td></tr>
Chris@1 138 <tr><td valign="top"><em><a class="anchor" name="gga18a7" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ERROR_OPENING_FILE</em>&nbsp;</td><td>
Chris@1 139 The iterator could not open the target file </td></tr>
Chris@1 140 <tr><td valign="top"><em><a class="anchor" name="gga18a8" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_A_FLAC_FILE"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_A_FLAC_FILE</em>&nbsp;</td><td>
Chris@1 141 The iterator could not find the FLAC signature at the start of the file </td></tr>
Chris@1 142 <tr><td valign="top"><em><a class="anchor" name="gga18a9" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_WRITABLE"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_NOT_WRITABLE</em>&nbsp;</td><td>
Chris@1 143 The iterator tried to write to a file that was not writable </td></tr>
Chris@1 144 <tr><td valign="top"><em><a class="anchor" name="gga18a10" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_BAD_METADATA"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_BAD_METADATA</em>&nbsp;</td><td>
Chris@1 145 The iterator encountered input that does not conform to the FLAC metadata specification </td></tr>
Chris@1 146 <tr><td valign="top"><em><a class="anchor" name="gga18a11" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_READ_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_READ_ERROR</em>&nbsp;</td><td>
Chris@1 147 The iterator encountered an error while reading the FLAC file </td></tr>
Chris@1 148 <tr><td valign="top"><em><a class="anchor" name="gga18a12" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_SEEK_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_SEEK_ERROR</em>&nbsp;</td><td>
Chris@1 149 The iterator encountered an error while seeking in the FLAC file </td></tr>
Chris@1 150 <tr><td valign="top"><em><a class="anchor" name="gga18a13" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_WRITE_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_WRITE_ERROR</em>&nbsp;</td><td>
Chris@1 151 The iterator encountered an error while writing the FLAC file </td></tr>
Chris@1 152 <tr><td valign="top"><em><a class="anchor" name="gga18a14" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_RENAME_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_RENAME_ERROR</em>&nbsp;</td><td>
Chris@1 153 The iterator encountered an error renaming the FLAC file </td></tr>
Chris@1 154 <tr><td valign="top"><em><a class="anchor" name="gga18a15" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_UNLINK_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_UNLINK_ERROR</em>&nbsp;</td><td>
Chris@1 155 The iterator encountered an error removing the temporary file </td></tr>
Chris@1 156 <tr><td valign="top"><em><a class="anchor" name="gga18a16" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_MEMORY_ALLOCATION_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_MEMORY_ALLOCATION_ERROR</em>&nbsp;</td><td>
Chris@1 157 Memory allocation failed </td></tr>
Chris@1 158 <tr><td valign="top"><em><a class="anchor" name="gga18a17" doxytag="FLAC__METADATA_SIMPLE_ITERATOR_STATUS_INTERNAL_ERROR"></a>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_INTERNAL_ERROR</em>&nbsp;</td><td>
Chris@1 159 The caller violated an assertion or an unexpected error occurred </td></tr>
Chris@1 160 </table>
Chris@1 161 </dl>
Chris@1 162 </td>
Chris@1 163 </tr>
Chris@1 164 </table>
Chris@1 165 <hr><h2>Function Documentation</h2>
Chris@1 166 <a class="anchor" name="ga2" doxytag="metadata.h::FLAC__metadata_simple_iterator_new"></a><p>
Chris@1 167 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 168 <tr>
Chris@1 169 <td class="mdRow">
Chris@1 170 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 171 <tr>
Chris@1 172 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a>* FLAC__metadata_simple_iterator_new </td>
Chris@1 173 <td class="md" valign="top">(&nbsp;</td>
Chris@1 174 <td class="md" nowrap valign="top">void&nbsp;</td>
Chris@1 175 <td class="mdname1" valign="top" nowrap> </td>
Chris@1 176 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 177 <td class="md" nowrap></td>
Chris@1 178 </tr>
Chris@1 179 </table>
Chris@1 180 </td>
Chris@1 181 </tr>
Chris@1 182 </table>
Chris@1 183 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 184 <tr>
Chris@1 185 <td>
Chris@1 186 &nbsp;
Chris@1 187 </td>
Chris@1 188 <td>
Chris@1 189
Chris@1 190 <p>
Chris@1 191 Create a new iterator instance.<p>
Chris@1 192 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 193 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 194 <tr><td valign="top"></td><td valign="top"><em>FLAC__Metadata_SimpleIterator*</em>&nbsp;</td><td><code>NULL</code> if there was an error allocating memory, else the new instance. </td></tr>
Chris@1 195 </table>
Chris@1 196 </dl>
Chris@1 197 </td>
Chris@1 198 </tr>
Chris@1 199 </table>
Chris@1 200 <a class="anchor" name="ga3" doxytag="metadata.h::FLAC__metadata_simple_iterator_delete"></a><p>
Chris@1 201 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 202 <tr>
Chris@1 203 <td class="mdRow">
Chris@1 204 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 205 <tr>
Chris@1 206 <td class="md" nowrap valign="top">void FLAC__metadata_simple_iterator_delete </td>
Chris@1 207 <td class="md" valign="top">(&nbsp;</td>
Chris@1 208 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 209 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 210 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 211 <td class="md" nowrap></td>
Chris@1 212 </tr>
Chris@1 213 </table>
Chris@1 214 </td>
Chris@1 215 </tr>
Chris@1 216 </table>
Chris@1 217 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 218 <tr>
Chris@1 219 <td>
Chris@1 220 &nbsp;
Chris@1 221 </td>
Chris@1 222 <td>
Chris@1 223
Chris@1 224 <p>
Chris@1 225 Free an iterator instance. Deletes the object pointed to by <em>iterator</em>.<p>
Chris@1 226 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 227 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 228 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing iterator. </td></tr>
Chris@1 229 </table>
Chris@1 230 </dl>
Chris@1 231 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 232 </pre></div> </dd></dl>
Chris@1 233 </td>
Chris@1 234 </tr>
Chris@1 235 </table>
Chris@1 236 <a class="anchor" name="ga4" doxytag="metadata.h::FLAC__metadata_simple_iterator_status"></a><p>
Chris@1 237 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 238 <tr>
Chris@1 239 <td class="mdRow">
Chris@1 240 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 241 <tr>
Chris@1 242 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga18">FLAC__Metadata_SimpleIteratorStatus</a> FLAC__metadata_simple_iterator_status </td>
Chris@1 243 <td class="md" valign="top">(&nbsp;</td>
Chris@1 244 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 245 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 246 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 247 <td class="md" nowrap></td>
Chris@1 248 </tr>
Chris@1 249 </table>
Chris@1 250 </td>
Chris@1 251 </tr>
Chris@1 252 </table>
Chris@1 253 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 254 <tr>
Chris@1 255 <td>
Chris@1 256 &nbsp;
Chris@1 257 </td>
Chris@1 258 <td>
Chris@1 259
Chris@1 260 <p>
Chris@1 261 Get the current status of the iterator. Call this after a function returns <code>false</code> to get the reason for the error. Also resets the status to FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK.<p>
Chris@1 262 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 263 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 264 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing iterator. </td></tr>
Chris@1 265 </table>
Chris@1 266 </dl>
Chris@1 267 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 268 </pre></div> </dd></dl>
Chris@1 269 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 270 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 271 <tr><td valign="top"></td><td valign="top"><em>FLAC__Metadata_SimpleIteratorStatus</em>&nbsp;</td><td>The current status of the iterator. </td></tr>
Chris@1 272 </table>
Chris@1 273 </dl>
Chris@1 274 </td>
Chris@1 275 </tr>
Chris@1 276 </table>
Chris@1 277 <a class="anchor" name="ga5" doxytag="metadata.h::FLAC__metadata_simple_iterator_init"></a><p>
Chris@1 278 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 279 <tr>
Chris@1 280 <td class="mdRow">
Chris@1 281 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 282 <tr>
Chris@1 283 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_init </td>
Chris@1 284 <td class="md" valign="top">(&nbsp;</td>
Chris@1 285 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 286 <td class="mdname" nowrap> <em>iterator</em>, </td>
Chris@1 287 </tr>
Chris@1 288 <tr>
Chris@1 289 <td class="md" nowrap align="right"></td>
Chris@1 290 <td class="md"></td>
Chris@1 291 <td class="md" nowrap>const char *&nbsp;</td>
Chris@1 292 <td class="mdname" nowrap> <em>filename</em>, </td>
Chris@1 293 </tr>
Chris@1 294 <tr>
Chris@1 295 <td class="md" nowrap align="right"></td>
Chris@1 296 <td class="md"></td>
Chris@1 297 <td class="md" nowrap>FLAC__bool&nbsp;</td>
Chris@1 298 <td class="mdname" nowrap> <em>read_only</em>, </td>
Chris@1 299 </tr>
Chris@1 300 <tr>
Chris@1 301 <td class="md" nowrap align="right"></td>
Chris@1 302 <td class="md"></td>
Chris@1 303 <td class="md" nowrap>FLAC__bool&nbsp;</td>
Chris@1 304 <td class="mdname" nowrap> <em>preserve_file_stats</em></td>
Chris@1 305 </tr>
Chris@1 306 <tr>
Chris@1 307 <td class="md"></td>
Chris@1 308 <td class="md">)&nbsp;</td>
Chris@1 309 <td class="md" colspan="2"></td>
Chris@1 310 </tr>
Chris@1 311 </table>
Chris@1 312 </td>
Chris@1 313 </tr>
Chris@1 314 </table>
Chris@1 315 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 316 <tr>
Chris@1 317 <td>
Chris@1 318 &nbsp;
Chris@1 319 </td>
Chris@1 320 <td>
Chris@1 321
Chris@1 322 <p>
Chris@1 323 Initialize the iterator to point to the first metadata block in the given FLAC file.<p>
Chris@1 324 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 325 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 326 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing iterator. </td></tr>
Chris@1 327 <tr><td valign="top"></td><td valign="top"><em>filename</em>&nbsp;</td><td>The path to the FLAC file. </td></tr>
Chris@1 328 <tr><td valign="top"></td><td valign="top"><em>read_only</em>&nbsp;</td><td>If <code>true</code>, the FLAC file will be opened in read-only mode; if <code>false</code>, the FLAC file will be opened for edit even if no edits are performed. </td></tr>
Chris@1 329 <tr><td valign="top"></td><td valign="top"><em>preserve_file_stats</em>&nbsp;</td><td>If <code>true</code>, the owner and modification time will be preserved even if the FLAC file is written to. </td></tr>
Chris@1 330 </table>
Chris@1 331 </dl>
Chris@1 332 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 333 </pre></div> <div class="fragment"><pre class="fragment"> filename != NULL
Chris@1 334 </pre></div> </dd></dl>
Chris@1 335 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 336 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 337 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if a memory allocation error occurs, the file can't be opened, or another error occurs, else <code>true</code>. </td></tr>
Chris@1 338 </table>
Chris@1 339 </dl>
Chris@1 340 </td>
Chris@1 341 </tr>
Chris@1 342 </table>
Chris@1 343 <a class="anchor" name="ga6" doxytag="metadata.h::FLAC__metadata_simple_iterator_is_writable"></a><p>
Chris@1 344 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 345 <tr>
Chris@1 346 <td class="mdRow">
Chris@1 347 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 348 <tr>
Chris@1 349 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_is_writable </td>
Chris@1 350 <td class="md" valign="top">(&nbsp;</td>
Chris@1 351 <td class="md" nowrap valign="top">const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 352 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 353 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 354 <td class="md" nowrap></td>
Chris@1 355 </tr>
Chris@1 356 </table>
Chris@1 357 </td>
Chris@1 358 </tr>
Chris@1 359 </table>
Chris@1 360 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 361 <tr>
Chris@1 362 <td>
Chris@1 363 &nbsp;
Chris@1 364 </td>
Chris@1 365 <td>
Chris@1 366
Chris@1 367 <p>
Chris@1 368 Returns <code>true</code> if the FLAC file is writable. If <code>false</code>, calls to <a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block()</a> and <a class="el" href="group__flac__metadata__level1.html#ga16">FLAC__metadata_simple_iterator_insert_block_after()</a> will fail.<p>
Chris@1 369 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 370 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 371 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing iterator. </td></tr>
Chris@1 372 </table>
Chris@1 373 </dl>
Chris@1 374 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 375 </pre></div> </dd></dl>
Chris@1 376 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 377 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 378 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td>See above. </td></tr>
Chris@1 379 </table>
Chris@1 380 </dl>
Chris@1 381 </td>
Chris@1 382 </tr>
Chris@1 383 </table>
Chris@1 384 <a class="anchor" name="ga7" doxytag="metadata.h::FLAC__metadata_simple_iterator_next"></a><p>
Chris@1 385 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 386 <tr>
Chris@1 387 <td class="mdRow">
Chris@1 388 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 389 <tr>
Chris@1 390 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_next </td>
Chris@1 391 <td class="md" valign="top">(&nbsp;</td>
Chris@1 392 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 393 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 394 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 395 <td class="md" nowrap></td>
Chris@1 396 </tr>
Chris@1 397 </table>
Chris@1 398 </td>
Chris@1 399 </tr>
Chris@1 400 </table>
Chris@1 401 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 402 <tr>
Chris@1 403 <td>
Chris@1 404 &nbsp;
Chris@1 405 </td>
Chris@1 406 <td>
Chris@1 407
Chris@1 408 <p>
Chris@1 409 Moves the iterator forward one metadata block, returning <code>false</code> if already at the end.<p>
Chris@1 410 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 411 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 412 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 413 </table>
Chris@1 414 </dl>
Chris@1 415 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 416 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 417 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 418 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 419 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if already at the last metadata block of the chain, else <code>true</code>. </td></tr>
Chris@1 420 </table>
Chris@1 421 </dl>
Chris@1 422 </td>
Chris@1 423 </tr>
Chris@1 424 </table>
Chris@1 425 <a class="anchor" name="ga8" doxytag="metadata.h::FLAC__metadata_simple_iterator_prev"></a><p>
Chris@1 426 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 427 <tr>
Chris@1 428 <td class="mdRow">
Chris@1 429 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 430 <tr>
Chris@1 431 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_prev </td>
Chris@1 432 <td class="md" valign="top">(&nbsp;</td>
Chris@1 433 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 434 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 435 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 436 <td class="md" nowrap></td>
Chris@1 437 </tr>
Chris@1 438 </table>
Chris@1 439 </td>
Chris@1 440 </tr>
Chris@1 441 </table>
Chris@1 442 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 443 <tr>
Chris@1 444 <td>
Chris@1 445 &nbsp;
Chris@1 446 </td>
Chris@1 447 <td>
Chris@1 448
Chris@1 449 <p>
Chris@1 450 Moves the iterator backward one metadata block, returning <code>false</code> if already at the beginning.<p>
Chris@1 451 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 452 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 453 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 454 </table>
Chris@1 455 </dl>
Chris@1 456 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 457 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 458 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 459 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 460 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>false</code> if already at the first metadata block of the chain, else <code>true</code>. </td></tr>
Chris@1 461 </table>
Chris@1 462 </dl>
Chris@1 463 </td>
Chris@1 464 </tr>
Chris@1 465 </table>
Chris@1 466 <a class="anchor" name="ga9" doxytag="metadata.h::FLAC__metadata_simple_iterator_is_last"></a><p>
Chris@1 467 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 468 <tr>
Chris@1 469 <td class="mdRow">
Chris@1 470 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 471 <tr>
Chris@1 472 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_is_last </td>
Chris@1 473 <td class="md" valign="top">(&nbsp;</td>
Chris@1 474 <td class="md" nowrap valign="top">const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 475 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 476 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 477 <td class="md" nowrap></td>
Chris@1 478 </tr>
Chris@1 479 </table>
Chris@1 480 </td>
Chris@1 481 </tr>
Chris@1 482 </table>
Chris@1 483 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 484 <tr>
Chris@1 485 <td>
Chris@1 486 &nbsp;
Chris@1 487 </td>
Chris@1 488 <td>
Chris@1 489
Chris@1 490 <p>
Chris@1 491 Returns a flag telling if the current metadata block is the last.<p>
Chris@1 492 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 493 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 494 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 495 </table>
Chris@1 496 </dl>
Chris@1 497 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 498 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 499 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 500 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 501 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if the current metadata block is the last in the file, else <code>false</code>. </td></tr>
Chris@1 502 </table>
Chris@1 503 </dl>
Chris@1 504 </td>
Chris@1 505 </tr>
Chris@1 506 </table>
Chris@1 507 <a class="anchor" name="ga10" doxytag="metadata.h::FLAC__metadata_simple_iterator_get_block_offset"></a><p>
Chris@1 508 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 509 <tr>
Chris@1 510 <td class="mdRow">
Chris@1 511 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 512 <tr>
Chris@1 513 <td class="md" nowrap valign="top">off_t FLAC__metadata_simple_iterator_get_block_offset </td>
Chris@1 514 <td class="md" valign="top">(&nbsp;</td>
Chris@1 515 <td class="md" nowrap valign="top">const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 516 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 517 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 518 <td class="md" nowrap></td>
Chris@1 519 </tr>
Chris@1 520 </table>
Chris@1 521 </td>
Chris@1 522 </tr>
Chris@1 523 </table>
Chris@1 524 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 525 <tr>
Chris@1 526 <td>
Chris@1 527 &nbsp;
Chris@1 528 </td>
Chris@1 529 <td>
Chris@1 530
Chris@1 531 <p>
Chris@1 532 Get the offset of the metadata block at the current position. This avoids reading the actual block data which can save time for large blocks.<p>
Chris@1 533 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 534 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 535 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 536 </table>
Chris@1 537 </dl>
Chris@1 538 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 539 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 540 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 541 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 542 <tr><td valign="top"></td><td valign="top"><em>off_t</em>&nbsp;</td><td>The offset of the metadata block at the current iterator position. This is the byte offset relative to the beginning of the file of the current metadata block's header. </td></tr>
Chris@1 543 </table>
Chris@1 544 </dl>
Chris@1 545 </td>
Chris@1 546 </tr>
Chris@1 547 </table>
Chris@1 548 <a class="anchor" name="ga11" doxytag="metadata.h::FLAC__metadata_simple_iterator_get_block_type"></a><p>
Chris@1 549 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 550 <tr>
Chris@1 551 <td class="mdRow">
Chris@1 552 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 553 <tr>
Chris@1 554 <td class="md" nowrap valign="top"><a class="el" href="group__flac__format.html#ga113">FLAC__MetadataType</a> FLAC__metadata_simple_iterator_get_block_type </td>
Chris@1 555 <td class="md" valign="top">(&nbsp;</td>
Chris@1 556 <td class="md" nowrap valign="top">const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 557 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 558 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 559 <td class="md" nowrap></td>
Chris@1 560 </tr>
Chris@1 561 </table>
Chris@1 562 </td>
Chris@1 563 </tr>
Chris@1 564 </table>
Chris@1 565 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 566 <tr>
Chris@1 567 <td>
Chris@1 568 &nbsp;
Chris@1 569 </td>
Chris@1 570 <td>
Chris@1 571
Chris@1 572 <p>
Chris@1 573 Get the type of the metadata block at the current position. This avoids reading the actual block data which can save time for large blocks.<p>
Chris@1 574 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 575 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 576 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 577 </table>
Chris@1 578 </dl>
Chris@1 579 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 580 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 581 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 582 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 583 <tr><td valign="top"></td><td valign="top"><em>FLAC__MetadataType</em>&nbsp;</td><td>The type of the metadata block at the current iterator position. </td></tr>
Chris@1 584 </table>
Chris@1 585 </dl>
Chris@1 586 </td>
Chris@1 587 </tr>
Chris@1 588 </table>
Chris@1 589 <a class="anchor" name="ga12" doxytag="metadata.h::FLAC__metadata_simple_iterator_get_block_length"></a><p>
Chris@1 590 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 591 <tr>
Chris@1 592 <td class="mdRow">
Chris@1 593 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 594 <tr>
Chris@1 595 <td class="md" nowrap valign="top">unsigned FLAC__metadata_simple_iterator_get_block_length </td>
Chris@1 596 <td class="md" valign="top">(&nbsp;</td>
Chris@1 597 <td class="md" nowrap valign="top">const <a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 598 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 599 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 600 <td class="md" nowrap></td>
Chris@1 601 </tr>
Chris@1 602 </table>
Chris@1 603 </td>
Chris@1 604 </tr>
Chris@1 605 </table>
Chris@1 606 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 607 <tr>
Chris@1 608 <td>
Chris@1 609 &nbsp;
Chris@1 610 </td>
Chris@1 611 <td>
Chris@1 612
Chris@1 613 <p>
Chris@1 614 Get the length of the metadata block at the current position. This avoids reading the actual block data which can save time for large blocks.<p>
Chris@1 615 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 616 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 617 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 618 </table>
Chris@1 619 </dl>
Chris@1 620 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 621 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 622 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 623 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 624 <tr><td valign="top"></td><td valign="top"><em>unsigned</em>&nbsp;</td><td>The length of the metadata block at the current iterator position. The is same length as that in the <a href="http://flac.sourceforge.net/format.html#metadata_block_header">metadata block header</a>, i.e. the length of the metadata body that follows the header. </td></tr>
Chris@1 625 </table>
Chris@1 626 </dl>
Chris@1 627 </td>
Chris@1 628 </tr>
Chris@1 629 </table>
Chris@1 630 <a class="anchor" name="ga13" doxytag="metadata.h::FLAC__metadata_simple_iterator_get_application_id"></a><p>
Chris@1 631 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 632 <tr>
Chris@1 633 <td class="mdRow">
Chris@1 634 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 635 <tr>
Chris@1 636 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_get_application_id </td>
Chris@1 637 <td class="md" valign="top">(&nbsp;</td>
Chris@1 638 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 639 <td class="mdname" nowrap> <em>iterator</em>, </td>
Chris@1 640 </tr>
Chris@1 641 <tr>
Chris@1 642 <td class="md" nowrap align="right"></td>
Chris@1 643 <td class="md"></td>
Chris@1 644 <td class="md" nowrap>FLAC__byte *&nbsp;</td>
Chris@1 645 <td class="mdname" nowrap> <em>id</em></td>
Chris@1 646 </tr>
Chris@1 647 <tr>
Chris@1 648 <td class="md"></td>
Chris@1 649 <td class="md">)&nbsp;</td>
Chris@1 650 <td class="md" colspan="2"></td>
Chris@1 651 </tr>
Chris@1 652 </table>
Chris@1 653 </td>
Chris@1 654 </tr>
Chris@1 655 </table>
Chris@1 656 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 657 <tr>
Chris@1 658 <td>
Chris@1 659 &nbsp;
Chris@1 660 </td>
Chris@1 661 <td>
Chris@1 662
Chris@1 663 <p>
Chris@1 664 Get the application ID of the <code>APPLICATION</code> block at the current position. This avoids reading the actual block data which can save time for large blocks.<p>
Chris@1 665 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 666 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 667 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 668 <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>A pointer to a buffer of at least <code>4</code> bytes where the ID will be stored. </td></tr>
Chris@1 669 </table>
Chris@1 670 </dl>
Chris@1 671 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 672 </pre></div> <div class="fragment"><pre class="fragment"> <span class="keywordtype">id</span> != NULL
Chris@1 673 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 674 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 675 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 676 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if the ID was successfully read, else <code>false</code>, in which case you should check <a class="el" href="group__flac__metadata__level1.html#ga4">FLAC__metadata_simple_iterator_status()</a> to find out why. If the status is <code>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_ILLEGAL_INPUT</code>, then the current metadata block is not an <code>APPLICATION</code> block. Otherwise if the status is <code>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_READ_ERROR</code> or <code>FLAC__METADATA_SIMPLE_ITERATOR_STATUS_SEEK_ERROR</code>, an I/O error occurred and the iterator can no longer be used. </td></tr>
Chris@1 677 </table>
Chris@1 678 </dl>
Chris@1 679 </td>
Chris@1 680 </tr>
Chris@1 681 </table>
Chris@1 682 <a class="anchor" name="ga14" doxytag="metadata.h::FLAC__metadata_simple_iterator_get_block"></a><p>
Chris@1 683 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 684 <tr>
Chris@1 685 <td class="mdRow">
Chris@1 686 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 687 <tr>
Chris@1 688 <td class="md" nowrap valign="top"><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a>* FLAC__metadata_simple_iterator_get_block </td>
Chris@1 689 <td class="md" valign="top">(&nbsp;</td>
Chris@1 690 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 691 <td class="mdname1" valign="top" nowrap> <em>iterator</em> </td>
Chris@1 692 <td class="md" valign="top">&nbsp;)&nbsp;</td>
Chris@1 693 <td class="md" nowrap></td>
Chris@1 694 </tr>
Chris@1 695 </table>
Chris@1 696 </td>
Chris@1 697 </tr>
Chris@1 698 </table>
Chris@1 699 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 700 <tr>
Chris@1 701 <td>
Chris@1 702 &nbsp;
Chris@1 703 </td>
Chris@1 704 <td>
Chris@1 705
Chris@1 706 <p>
Chris@1 707 Get the metadata block at the current position. You can modify the block but must use <a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block()</a> to write it back to the FLAC file.<p>
Chris@1 708 You must call <a class="el" href="group__flac__metadata__object.html#ga2">FLAC__metadata_object_delete()</a> on the returned object when you are finished with it.<p>
Chris@1 709 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 710 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 711 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 712 </table>
Chris@1 713 </dl>
Chris@1 714 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 715 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 716 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 717 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 718 <tr><td valign="top"></td><td valign="top"><em>FLAC__StreamMetadata*</em>&nbsp;</td><td>The current metadata block, or <code>NULL</code> if there was a memory allocation error. </td></tr>
Chris@1 719 </table>
Chris@1 720 </dl>
Chris@1 721 </td>
Chris@1 722 </tr>
Chris@1 723 </table>
Chris@1 724 <a class="anchor" name="ga15" doxytag="metadata.h::FLAC__metadata_simple_iterator_set_block"></a><p>
Chris@1 725 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 726 <tr>
Chris@1 727 <td class="mdRow">
Chris@1 728 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 729 <tr>
Chris@1 730 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_set_block </td>
Chris@1 731 <td class="md" valign="top">(&nbsp;</td>
Chris@1 732 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 733 <td class="mdname" nowrap> <em>iterator</em>, </td>
Chris@1 734 </tr>
Chris@1 735 <tr>
Chris@1 736 <td class="md" nowrap align="right"></td>
Chris@1 737 <td class="md"></td>
Chris@1 738 <td class="md" nowrap><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&nbsp;</td>
Chris@1 739 <td class="mdname" nowrap> <em>block</em>, </td>
Chris@1 740 </tr>
Chris@1 741 <tr>
Chris@1 742 <td class="md" nowrap align="right"></td>
Chris@1 743 <td class="md"></td>
Chris@1 744 <td class="md" nowrap>FLAC__bool&nbsp;</td>
Chris@1 745 <td class="mdname" nowrap> <em>use_padding</em></td>
Chris@1 746 </tr>
Chris@1 747 <tr>
Chris@1 748 <td class="md"></td>
Chris@1 749 <td class="md">)&nbsp;</td>
Chris@1 750 <td class="md" colspan="2"></td>
Chris@1 751 </tr>
Chris@1 752 </table>
Chris@1 753 </td>
Chris@1 754 </tr>
Chris@1 755 </table>
Chris@1 756 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 757 <tr>
Chris@1 758 <td>
Chris@1 759 &nbsp;
Chris@1 760 </td>
Chris@1 761 <td>
Chris@1 762
Chris@1 763 <p>
Chris@1 764 Write a block back to the FLAC file. This function tries to be as efficient as possible; how the block is actually written is shown by the following:<p>
Chris@1 765 Existing block is a STREAMINFO block and the new block is a STREAMINFO block: the new block is written in place. Make sure you know what you're doing when changing the values of a STREAMINFO block.<p>
Chris@1 766 Existing block is a STREAMINFO block and the new block is a not a STREAMINFO block: this is an error since the first block must be a STREAMINFO block. Returns <code>false</code> without altering the file.<p>
Chris@1 767 Existing block is not a STREAMINFO block and the new block is a STREAMINFO block: this is an error since there may be only one STREAMINFO block. Returns <code>false</code> without altering the file.<p>
Chris@1 768 Existing block and new block are the same length: the existing block will be replaced by the new block, written in place.<p>
Chris@1 769 Existing block is longer than new block: if use_padding is <code>true</code>, the existing block will be overwritten in place with the new block followed by a PADDING block, if possible, to make the total size the same as the existing block. Remember that a padding block requires at least four bytes so if the difference in size between the new block and existing block is less than that, the entire file will have to be rewritten, using the new block's exact size. If use_padding is <code>false</code>, the entire file will be rewritten, replacing the existing block by the new block.<p>
Chris@1 770 Existing block is shorter than new block: if use_padding is <code>true</code>, the function will try and expand the new block into the following PADDING block, if it exists and doing so won't shrink the PADDING block to less than 4 bytes. If there is no following PADDING block, or it will shrink to less than 4 bytes, or use_padding is <code>false</code>, the entire file is rewritten, replacing the existing block with the new block. Note that in this case any following PADDING block is preserved as is.<p>
Chris@1 771 After writing the block, the iterator will remain in the same place, i.e. pointing to the new block.<p>
Chris@1 772 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 773 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 774 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 775 <tr><td valign="top"></td><td valign="top"><em>block</em>&nbsp;</td><td>The block to set. </td></tr>
Chris@1 776 <tr><td valign="top"></td><td valign="top"><em>use_padding</em>&nbsp;</td><td>See above. </td></tr>
Chris@1 777 </table>
Chris@1 778 </dl>
Chris@1 779 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 780 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> <div class="fragment"><pre class="fragment"> block != NULL
Chris@1 781 </pre></div> </dd></dl>
Chris@1 782 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 783 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 784 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, else <code>false</code>. </td></tr>
Chris@1 785 </table>
Chris@1 786 </dl>
Chris@1 787 </td>
Chris@1 788 </tr>
Chris@1 789 </table>
Chris@1 790 <a class="anchor" name="ga16" doxytag="metadata.h::FLAC__metadata_simple_iterator_insert_block_after"></a><p>
Chris@1 791 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 792 <tr>
Chris@1 793 <td class="mdRow">
Chris@1 794 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 795 <tr>
Chris@1 796 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_insert_block_after </td>
Chris@1 797 <td class="md" valign="top">(&nbsp;</td>
Chris@1 798 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 799 <td class="mdname" nowrap> <em>iterator</em>, </td>
Chris@1 800 </tr>
Chris@1 801 <tr>
Chris@1 802 <td class="md" nowrap align="right"></td>
Chris@1 803 <td class="md"></td>
Chris@1 804 <td class="md" nowrap><a class="el" href="structFLAC____StreamMetadata.html">FLAC__StreamMetadata</a> *&nbsp;</td>
Chris@1 805 <td class="mdname" nowrap> <em>block</em>, </td>
Chris@1 806 </tr>
Chris@1 807 <tr>
Chris@1 808 <td class="md" nowrap align="right"></td>
Chris@1 809 <td class="md"></td>
Chris@1 810 <td class="md" nowrap>FLAC__bool&nbsp;</td>
Chris@1 811 <td class="mdname" nowrap> <em>use_padding</em></td>
Chris@1 812 </tr>
Chris@1 813 <tr>
Chris@1 814 <td class="md"></td>
Chris@1 815 <td class="md">)&nbsp;</td>
Chris@1 816 <td class="md" colspan="2"></td>
Chris@1 817 </tr>
Chris@1 818 </table>
Chris@1 819 </td>
Chris@1 820 </tr>
Chris@1 821 </table>
Chris@1 822 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 823 <tr>
Chris@1 824 <td>
Chris@1 825 &nbsp;
Chris@1 826 </td>
Chris@1 827 <td>
Chris@1 828
Chris@1 829 <p>
Chris@1 830 This is similar to <a class="el" href="group__flac__metadata__level1.html#ga15">FLAC__metadata_simple_iterator_set_block()</a> except that instead of writing over an existing block, it appends a block after the existing block. <em>use_padding</em> is again used to tell the function to try an expand into following padding in an attempt to avoid rewriting the entire file.<p>
Chris@1 831 This function will fail and return <code>false</code> if given a STREAMINFO block.<p>
Chris@1 832 After writing the block, the iterator will be pointing to the new block.<p>
Chris@1 833 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 834 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 835 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 836 <tr><td valign="top"></td><td valign="top"><em>block</em>&nbsp;</td><td>The block to set. </td></tr>
Chris@1 837 <tr><td valign="top"></td><td valign="top"><em>use_padding</em>&nbsp;</td><td>See above. </td></tr>
Chris@1 838 </table>
Chris@1 839 </dl>
Chris@1 840 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 841 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> <div class="fragment"><pre class="fragment"> block != NULL
Chris@1 842 </pre></div> </dd></dl>
Chris@1 843 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 844 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 845 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, else <code>false</code>. </td></tr>
Chris@1 846 </table>
Chris@1 847 </dl>
Chris@1 848 </td>
Chris@1 849 </tr>
Chris@1 850 </table>
Chris@1 851 <a class="anchor" name="ga17" doxytag="metadata.h::FLAC__metadata_simple_iterator_delete_block"></a><p>
Chris@1 852 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 853 <tr>
Chris@1 854 <td class="mdRow">
Chris@1 855 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 856 <tr>
Chris@1 857 <td class="md" nowrap valign="top">FLAC__bool FLAC__metadata_simple_iterator_delete_block </td>
Chris@1 858 <td class="md" valign="top">(&nbsp;</td>
Chris@1 859 <td class="md" nowrap valign="top"><a class="el" href="group__flac__metadata__level1.html#ga0">FLAC__Metadata_SimpleIterator</a> *&nbsp;</td>
Chris@1 860 <td class="mdname" nowrap> <em>iterator</em>, </td>
Chris@1 861 </tr>
Chris@1 862 <tr>
Chris@1 863 <td class="md" nowrap align="right"></td>
Chris@1 864 <td class="md"></td>
Chris@1 865 <td class="md" nowrap>FLAC__bool&nbsp;</td>
Chris@1 866 <td class="mdname" nowrap> <em>use_padding</em></td>
Chris@1 867 </tr>
Chris@1 868 <tr>
Chris@1 869 <td class="md"></td>
Chris@1 870 <td class="md">)&nbsp;</td>
Chris@1 871 <td class="md" colspan="2"></td>
Chris@1 872 </tr>
Chris@1 873 </table>
Chris@1 874 </td>
Chris@1 875 </tr>
Chris@1 876 </table>
Chris@1 877 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 878 <tr>
Chris@1 879 <td>
Chris@1 880 &nbsp;
Chris@1 881 </td>
Chris@1 882 <td>
Chris@1 883
Chris@1 884 <p>
Chris@1 885 Deletes the block at the current position. This will cause the entire FLAC file to be rewritten, unless <em>use_padding</em> is <code>true</code>, in which case the block will be replaced by an equal-sized PADDING block. The iterator will be left pointing to the block before the one just deleted.<p>
Chris@1 886 You may not delete the STREAMINFO block.<p>
Chris@1 887 <dl compact><dt><b>Parameters:</b></dt><dd>
Chris@1 888 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 889 <tr><td valign="top"></td><td valign="top"><em>iterator</em>&nbsp;</td><td>A pointer to an existing initialized iterator. </td></tr>
Chris@1 890 <tr><td valign="top"></td><td valign="top"><em>use_padding</em>&nbsp;</td><td>See above. </td></tr>
Chris@1 891 </table>
Chris@1 892 </dl>
Chris@1 893 <dl compact><dt><b>Assertions: </b></dt><dd><div class="fragment"><pre class="fragment"> iterator != NULL
Chris@1 894 </pre></div> <em>iterator</em> has been successfully initialized with <a class="el" href="group__flac__metadata__level1.html#ga5">FLAC__metadata_simple_iterator_init()</a> </dd></dl>
Chris@1 895 <dl compact><dt><b>Return values:</b></dt><dd>
Chris@1 896 <table border="0" cellspacing="2" cellpadding="0">
Chris@1 897 <tr><td valign="top"></td><td valign="top"><em>FLAC__bool</em>&nbsp;</td><td><code>true</code> if successful, else <code>false</code>. </td></tr>
Chris@1 898 </table>
Chris@1 899 </dl>
Chris@1 900 </td>
Chris@1 901 </tr>
Chris@1 902 </table>
Chris@1 903 <hr><h2>Variable Documentation</h2>
Chris@1 904 <a class="anchor" name="ga1" doxytag="metadata.h::FLAC__Metadata_SimpleIteratorStatusString"></a><p>
Chris@1 905 <table class="mdTable" cellpadding="2" cellspacing="0">
Chris@1 906 <tr>
Chris@1 907 <td class="mdRow">
Chris@1 908 <table cellpadding="0" cellspacing="0" border="0">
Chris@1 909 <tr>
Chris@1 910 <td class="md" nowrap valign="top">const char* const <a class="el" href="group__flac__metadata__level1.html#ga1">FLAC__Metadata_SimpleIteratorStatusString</a>[] </td>
Chris@1 911 </tr>
Chris@1 912 </table>
Chris@1 913 </td>
Chris@1 914 </tr>
Chris@1 915 </table>
Chris@1 916 <table cellspacing="5" cellpadding="0" border="0">
Chris@1 917 <tr>
Chris@1 918 <td>
Chris@1 919 &nbsp;
Chris@1 920 </td>
Chris@1 921 <td>
Chris@1 922
Chris@1 923 <p>
Chris@1 924 Maps a FLAC__Metadata_SimpleIteratorStatus to a C string.<p>
Chris@1 925 Using a FLAC__Metadata_SimpleIteratorStatus as the index to this array will give the string equivalent. The contents should not be modified. </td>
Chris@1 926 </tr>
Chris@1 927 </table>
Chris@1 928
Chris@1 929 <hr size="1">
Chris@1 930 <div class="copyright">
Chris@1 931 <!-- @@@ oh so hacky -->
Chris@1 932 <table>
Chris@1 933 <tr>
Chris@1 934 <td align="left">
Chris@1 935 Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
Chris@1 936 </td>
Chris@1 937 <td width="1%" align="right">
Chris@1 938 <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=13478&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" /></a>
Chris@1 939 </td>
Chris@1 940 </tr>
Chris@1 941 </table>
Chris@1 942 </div>
Chris@1 943 <!-- Copyright (c) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson -->
Chris@1 944 <!-- Permission is granted to copy, distribute and/or modify this document -->
Chris@1 945 <!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
Chris@1 946 <!-- or any later version published by the Free Software Foundation; -->
Chris@1 947 <!-- with no invariant sections. -->
Chris@1 948 <!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
Chris@1 949 </body>
Chris@1 950 </html>