Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > ca44e7e21c4b6cd5e0c5fdfbf12b4de7 > files > 84

libnjb-devel-2.2.6-6.fc12.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libnjb: The track and tag (song ID metadata) manipulation API</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>The track and tag (song ID metadata) manipulation API</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge3c6350dcc11b09516d08907573b54bf"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Title" ref="ge3c6350dcc11b09516d08907573b54bf" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Title</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_TITLE, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8aaf956c66b1419fb61916935b73249"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Album" ref="ga8aaf956c66b1419fb61916935b73249" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Album</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_ALBUM, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gea547f5e83dde7e0f5fe07378f07da7d"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Genre" ref="gea547f5e83dde7e0f5fe07378f07da7d" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Genre</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_GENRE, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gfdd804144d712d9079a164af9054fcf8"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Artist" ref="gfdd804144d712d9079a164af9054fcf8" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Artist</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_ARTIST, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g50f5f8b16ade2bff8b2c04c0e09a1d89"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Length" ref="g50f5f8b16ade2bff8b2c04c0e09a1d89" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Length</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_Uint16(FR_LENGTH, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g5984d2f61b12f692f8aef25659968bdd"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Filesize" ref="g5984d2f61b12f692f8aef25659968bdd" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Filesize</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_Uint32(FR_SIZE, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gb7631359a8ad9c2e98859464b49dd482"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Tracknum" ref="gb7631359a8ad9c2e98859464b49dd482" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Tracknum</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_Uint16(FR_TRACK, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g56fd60bb8c8473ae2789b0caa6266b6f"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Year" ref="g56fd60bb8c8473ae2789b0caa6266b6f" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Year</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_Uint16(FR_YEAR, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g8b5108cfa1fb5826552d757d65e60857"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Filename" ref="g8b5108cfa1fb5826552d757d65e60857" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Filename</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_FNAME, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc5256b5aed0c979c4b17b22b7a644ec3"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Protected" ref="gc5256b5aed0c979c4b17b22b7a644ec3" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Protected</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_Uint16(FR_PROTECTED, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge1e2a1de1fb7b937e46e4f5403d869eb"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Bitrate" ref="ge1e2a1de1fb7b937e46e4f5403d869eb" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Bitrate</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_Uint32(FR_BITRATE, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7723a545a63b28125ee1b3d3ded54d15"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Comment" ref="g7723a545a63b28125ee1b3d3ded54d15" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Comment</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_COMMENT, a)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ge91a20b96179583ab80273fd69ac206c"></a><!-- doxytag: member="tagapi::NJB_Songid_Frame_New_Folder" ref="ge91a20b96179583ab80273fd69ac206c" args="(a)" -->
#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>NJB_Songid_Frame_New_Folder</b>(a)&nbsp;&nbsp;&nbsp;NJB_Songid_Frame_New_String(FR_FOLDER, a)</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g78703030798af2be6808335c6542aa6d">NJB_Songid_New</a> (void)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g188d05568998e787366804565e9fcfb5">NJB_Songid_Destroy</a> (<a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *song)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g0f78d8cde327dd995f7008935e295c37">NJB_Songid_Addframe</a> (<a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *song, <a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *frame)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g8eada6cbbc26c6aa18f3c22a20d38756">NJB_Songid_Reset_Getframe</a> (<a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *song)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g0013c681283968bf65b564beb8109e5b">NJB_Songid_Getframe</a> (<a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *song)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#ge02110b5c20cddfcf92bbdbdeeef4039">NJB_Songid_Findframe</a> (<a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *song, const char *label)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g0423c3d42d53466d75bb9bf903601285">NJB_Songid_Frame_New_String</a> (const char *label, const char *value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g144e0f1fbe75bd301c62dcae56d9d3af">NJB_Songid_Frame_New_Uint16</a> (const char *label, u_int16_t value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g3d4fa0c440b4377a662ff986ba10cddf">NJB_Songid_Frame_New_Uint32</a> (const char *label, u_int32_t value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#gbcbe1903a855d72b5e2b933c041a98bf">NJB_Songid_Frame_New_Codec</a> (const char *value)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g3bb4c23e9166574fdb5f25d082a38b84">NJB_Songid_Frame_Destroy</a> (<a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *frame)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g68e4af147b853116272587a3ab79b608">NJB_Get_Extended_Tags</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb, int extended)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g5b4b2093f4b7adb9ea0e3e34f572bc80">NJB_Reset_Get_Track_Tag</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#g8714367c0e56b681b75a7c7af9b2b739">NJB_Replace_Track_Tag</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb, u_int32_t trackid, <a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *songid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#gd279e14ab0e254f2e70c3d169b84cbc3">NJB_Get_Track</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb, u_int32_t trackid, u_int32_t size, const char *path, <a class="el" href="libnjb_8h.html#6efb672d692e39f52eb3589fde051ad2">NJB_Xfer_Callback</a> *callback, void *data)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#gb99507fb41c1527e58a449812a5d99e6">NJB_Get_Track_fd</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb, u_int32_t trackid, u_int32_t size, int fd, <a class="el" href="libnjb_8h.html#6efb672d692e39f52eb3589fde051ad2">NJB_Xfer_Callback</a> *callback, void *data)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#gde6296b1920788ae715e8d57d50a9e8a">NJB_Send_Track</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb, const char *path, <a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *songid, <a class="el" href="libnjb_8h.html#6efb672d692e39f52eb3589fde051ad2">NJB_Xfer_Callback</a> *callback, void *data, u_int32_t *trackid)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__tagapi.html#ge454a558a453279a94a0a8406f488bdc">NJB_Delete_Track</a> (<a class="el" href="structnjb__struct.html">njb_t</a> *njb, u_int32_t trackid)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="ge454a558a453279a94a0a8406f488bdc"></a><!-- doxytag: member="libnjb.h::NJB_Delete_Track" ref="ge454a558a453279a94a0a8406f488bdc" args="(njb_t *njb, u_int32_t trackid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NJB_Delete_Track           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>trackid</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This deletes a track from the device.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> jukebox object to use </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>trackid</em>&nbsp;</td><td>the track ID for the track to delete </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, -1 on failure </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="deltr_8c-example.html#a7">deltr.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00189">njb_struct::device_type</a>, <a class="el" href="njb__error_8h_source.html#l00019">EO_BADCOUNT</a>, and <a class="el" href="libnjb_8h_source.html#l00072">NJB_DEVICE_NJB1</a>.</p>

</div>
</div><p>
<a class="anchor" name="g68e4af147b853116272587a3ab79b608"></a><!-- doxytag: member="libnjb.h::NJB_Get_Extended_Tags" ref="g68e4af147b853116272587a3ab79b608" args="(njb_t *njb, int extended)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NJB_Get_Extended_Tags           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>extended</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This configures libnjb to retrieve extended tags from the device. For the NJB1 this is the default behaviour anyway so it need not be set, but for the series 3 devices, retrieving the extended tag information is a costly operation that will slow down the initial track scanning by orders of magnitude and irritate the user. Make sure end-users can configure whether they want to use this or not.<p>
The extended tags will include things like the filename and folder that the file used on the host before it was transfered to the device.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> object to set this mode for </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>extended</em>&nbsp;</td><td>use 0 for non-exetended tags (default), 1 for extended tags </td></tr>
  </table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="tracks_8c-example.html#a23">tracks.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00192">njb_struct::protocol_state</a>.</p>

</div>
</div><p>
<a class="anchor" name="gd279e14ab0e254f2e70c3d169b84cbc3"></a><!-- doxytag: member="libnjb.h::NJB_Get_Track" ref="gd279e14ab0e254f2e70c3d169b84cbc3" args="(njb_t *njb, u_int32_t trackid, u_int32_t size, const char *path, NJB_Xfer_Callback *callback, void *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NJB_Get_Track           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>fileid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="libnjb_8h.html#6efb672d692e39f52eb3589fde051ad2">NJB_Xfer_Callback</a> *&nbsp;</td>
          <td class="paramname"> <em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This retrieves ("uploads") a track from the device to the host computer.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> object to get the track from </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fileid</em>&nbsp;</td><td>the unique trackid (also known as file ID, they are the same things) as reported by the device from e.g. <code><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag()</a></code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>the size of the track in bytes. You know this size from previous calls to <code><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag()</a></code> and it is needed among other things for displaying a progress bar and for determining that all bytes have been correctly retrieved. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>the path where the resulting file should be written. If this parameter is null, the blocks are delivered via the callback's buf parameter. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td>a function that will be called repeatedly to report progress during transfer, used for e.g. displaying progress bars </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>a voluntary parameter that can associate some user-supplied data with each callback call. It is OK to set this to NULL of course. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, -1 on failure </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__tagapi.html#gb99507fb41c1527e58a449812a5d99e6">NJB_Get_Track_fd()</a> </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="gettr_8c-example.html#a18">gettr.c</a>.</dl>
<p>References <a class="el" href="njb__error_8h_source.html#l00029">EO_TMPFILE</a>, and <a class="el" href="procedure_8c_source.html#l00980">NJB_Get_Track_fd()</a>.</p>

</div>
</div><p>
<a class="anchor" name="gb99507fb41c1527e58a449812a5d99e6"></a><!-- doxytag: member="libnjb.h::NJB_Get_Track_fd" ref="gb99507fb41c1527e58a449812a5d99e6" args="(njb_t *njb, u_int32_t trackid, u_int32_t size, int fd, NJB_Xfer_Callback *callback, void *data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NJB_Get_Track_fd           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>fileid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>fd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="libnjb_8h.html#6efb672d692e39f52eb3589fde051ad2">NJB_Xfer_Callback</a> *&nbsp;</td>
          <td class="paramname"> <em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This retrieves ("uploads") a track from the device to the host computer by way of a file descriptor, which is good for e.g. streaming stuff. The daring type can start playing back audio from the file descriptor before it is finished. This is also good for fetching to temporary files, which are often only given as file descriptors.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> object to get the track from </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fileid</em>&nbsp;</td><td>the unique trackid (also known as file ID, they are the same things) as reported by the device from e.g. <code><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag()</a></code>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>the size of the track in bytes. You know this size from previous calls to <code><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag()</a></code> and it is needed among other things for displaying a progress bar and for determining that all bytes have been correctly retrieved. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>fd</em>&nbsp;</td><td>the file descriptor that shall be fed with the track contents. The file descriptor must be writable. On win32 make sure it is a binary descriptor and not textual. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td>a function that will be called repeatedly to report progress during transfer, used for e.g. displaying progress bars </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>a voluntary parameter that can associate some user-supplied data with each callback call. It is OK to set this to NULL of course. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, -1 on failure </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__tagapi.html#gd279e14ab0e254f2e70c3d169b84cbc3">NJB_Get_Track()</a> </dd></dl>

<p>References <a class="el" href="libnjb_8h_source.html#l00189">njb_struct::device_type</a>, <a class="el" href="njb__error_8h_source.html#l00025">EO_ABORTED</a>, <a class="el" href="njb__error_8h_source.html#l00014">EO_NOMEM</a>, <a class="el" href="njb__error_8h_source.html#l00031">EO_WRFILE</a>, <a class="el" href="njb__error_8h_source.html#l00030">EO_XFERDENIED</a>, <a class="el" href="njb__error_8h_source.html#l00032">EO_XFERERROR</a>, <a class="el" href="protocol3_8c_source.html#l03231">njb3_get_file_block()</a>, <a class="el" href="protocol3_8c_source.html#l03127">njb3_request_file_chunk()</a>, <a class="el" href="libnjb_8h_source.html#l00072">NJB_DEVICE_NJB1</a>, <a class="el" href="protocol_8c_source.html#l00812">njb_receive_file_block()</a>, <a class="el" href="libnjb_8h_source.html#l00155">NJB_TURBO_OFF</a>, <a class="el" href="protocol_8c_source.html#l00341">njb_verify_last_command()</a>, and <a class="el" href="libnjb_8h_source.html#l00192">njb_struct::protocol_state</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l00904">NJB_Get_Track()</a>.</p>

</div>
</div><p>
<a class="anchor" name="gc1e3781b41ed63473b1808d9578ba1f3"></a><!-- doxytag: member="libnjb.h::NJB_Get_Track_Tag" ref="gc1e3781b41ed63473b1808d9578ba1f3" args="(njb_t *njb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a>* NJB_Get_Track_Tag           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This gets a track tag (song ID) from the device. The device should first be rewound using the <code><a class="el" href="group__tagapi.html#g5b4b2093f4b7adb9ea0e3e34f572bc80">NJB_Reset_Get_Track_Tag()</a></code> function.<p>
Notice that there is no function for getting the tag for a <em>single</em> track, there is just this function that dumps out the entire database in one big go. The recommended approach is to keep an internal track cache of all tracks and use this for getting metadata for single tracks. There is as far as we know no function in the Creative firmwares for getting the metadata of a single track, so access through this function is the only option.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> object to reset the track retrieveal pointer for </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a track tag (song ID) or NULL if the last track tag has already been retrieved </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__tagapi.html#g5b4b2093f4b7adb9ea0e3e34f572bc80">NJB_Reset_Get_Track_Tag()</a> </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="gettr_8c-example.html#a9">gettr.c</a>, and <a class="el" href="tracks_8c-example.html#a25">tracks.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00189">njb_struct::device_type</a>, <a class="el" href="libnjb_8h_source.html#l00072">NJB_DEVICE_NJB1</a>, and <a class="el" href="libnjb_8h_source.html#l00192">njb_struct::protocol_state</a>.</p>

</div>
</div><p>
<a class="anchor" name="g8714367c0e56b681b75a7c7af9b2b739"></a><!-- doxytag: member="libnjb.h::NJB_Replace_Track_Tag" ref="g8714367c0e56b681b75a7c7af9b2b739" args="(njb_t *njb, u_int32_t trackid, njb_songid_t *songid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NJB_Replace_Track_Tag           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>trackid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>songid</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This routine will replace the track tag or parts of a track tag for a track that already exist on the device. On the NJB1 the whole metadata set must be specified for this routine to work properly, but on the series 3 devices you can specify incremental updates (only parts of the metadata set). Be sure to either specify the full set all the time, or check if we are handling an NJB1 before submitting an incremental update (see example below).<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the jukebox object to use </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>trackid</em>&nbsp;</td><td>the track ID to replace the tag for </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>songid</em>&nbsp;</td><td>the new tag</td></tr>
  </table>
</dl>
Typical usage:<p>
<pre>
 njb_t *njb;
 njb_songid_t *songid;
 njb_songid_frame_t *frame;</pre><p>
<pre> songid = <a class="el" href="group__tagapi.html#g78703030798af2be6808335c6542aa6d">NJB_Songid_New()</a>;
 // On NJB1 incremental update is not possible, so a full
 // metadata set must always be specified.
 if (njb-&gt;device_type == NJB_DEVICE_NJB1) {
   frame = NJB_Songid_Frame_New_Codec(meta-&gt;codec);
   NJB_Songid_Addframe(songid, frame);
   frame = NJB_Songid_Frame_New_Filesize(meta-&gt;size);
   NJB_Songid_Addframe(songid, frame);
 }
 frame = NJB_Songid_Frame_New_Codec(NJB_CODEC_MP3);
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Title("MyTitle");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Album("MyAlbum");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Artist("MyArtist");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Genre("MyGenre");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Year(2004);
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Tracknum(1);
 NJB_Songid_Addframe(songid, frame);
 // The length of the track should typically be given, or such things
 // as progress indicators will stop working. If you absolutely want to
 // upload a file of unknown length and break progress indicators, set
 // length to 1 second.
 frame = NJB_Songid_Frame_New_Length(123);
 NJB_Songid_Addframe(songid, frame);
 // This one is optional, the track will survive without it.
 frame = NJB_Songid_Frame_New_Filename("Foo.mp3");
 NJB_Songid_Addframe(songid, frame);
 if (NJB_Replace_Track_Tag(njb, 123456, songid) == -1) {
    NJB_Error_Dump(stderr);
 }
 NJB_Songid_Destroy(songid);
 </pre> <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="tagtr_8c-example.html#a14">tagtr.c</a>.</dl>
<p>References <a class="el" href="structnjb__songid__frame__struct.html#10a23445028d703238342f51067b2dbb">njb_songid_frame_struct::data</a>, <a class="el" href="libnjb_8h_source.html#l00189">njb_struct::device_type</a>, <a class="el" href="njb__error_8h_source.html#l00036">EO_BAD_NJB1_REPLACE</a>, <a class="el" href="njb__error_8h_source.html#l00019">EO_BADCOUNT</a>, <a class="el" href="libnjb_8h_source.html#l00114">FR_CODEC</a>, <a class="el" href="libnjb_8h_source.html#l00203">njb_songid_frame_struct::label</a>, <a class="el" href="protocol3_8c_source.html#l03682">njb3_update_tag()</a>, <a class="el" href="libnjb_8h_source.html#l00072">NJB_DEVICE_NJB1</a>, <a class="el" href="songid_8c_source.html#l00651">NJB_Songid_Addframe()</a>, <a class="el" href="songid_8c_source.html#l00673">NJB_Songid_Destroy()</a>, <a class="el" href="songid_8c_source.html#l00840">NJB_Songid_Frame_New_String()</a>, <a class="el" href="songid_8c_source.html#l00912">NJB_Songid_Frame_New_Uint16()</a>, <a class="el" href="songid_8c_source.html#l00945">NJB_Songid_Frame_New_Uint32()</a>, <a class="el" href="songid_8c_source.html#l00720">NJB_Songid_Getframe()</a>, <a class="el" href="songid_8c_source.html#l00042">NJB_Songid_New()</a>, <a class="el" href="songid_8c_source.html#l00707">NJB_Songid_Reset_Getframe()</a>, <a class="el" href="libnjb_8h_source.html#l00093">NJB_TYPE_STRING</a>, <a class="el" href="libnjb_8h_source.html#l00094">NJB_TYPE_UINT16</a>, <a class="el" href="libnjb_8h_source.html#l00095">NJB_TYPE_UINT32</a>, <a class="el" href="songid_8c_source.html#l00233">songid_pack()</a>, <a class="el" href="songid_8c_source.html#l00449">songid_pack3()</a>, <a class="el" href="songid_8c_source.html#l00758">songid_sanity_check()</a>, <a class="el" href="libnjb_8h_source.html#l00209">njb_songid_frame_struct::strval</a>, <a class="el" href="libnjb_8h_source.html#l00204">njb_songid_frame_struct::type</a>, <a class="el" href="libnjb_8h_source.html#l00211">njb_songid_frame_struct::u_int16_val</a>, and <a class="el" href="libnjb_8h_source.html#l00212">njb_songid_frame_struct::u_int32_val</a>.</p>

</div>
</div><p>
<a class="anchor" name="g5b4b2093f4b7adb9ea0e3e34f572bc80"></a><!-- doxytag: member="libnjb.h::NJB_Reset_Get_Track_Tag" ref="g5b4b2093f4b7adb9ea0e3e34f572bc80" args="(njb_t *njb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NJB_Reset_Get_Track_Tag           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This resets the track tag (song ID) retrieveal function. The track tags can then be retrieved one by one using the <code><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag()</a></code> function.<p>
Typical usage:<p>
<pre>
 njb_t *njb;
 njb_songid_t *song;</pre><p>
<pre> NJB_Songid_Reset_Get_Track_Tag(njb);
 while ( (song = NJB_Get_Track_Tag(njb)) != NULL ) {
    // Do something with all the songs...
 }
 </pre><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> object to reset the track retrieveal pointer for </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__tagapi.html#gc1e3781b41ed63473b1808d9578ba1f3">NJB_Get_Track_Tag()</a> </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="gettr_8c-example.html#a8">gettr.c</a>, and <a class="el" href="tracks_8c-example.html#a24">tracks.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00189">njb_struct::device_type</a>, <a class="el" href="libnjb_8h_source.html#l00072">NJB_DEVICE_NJB1</a>, and <a class="el" href="libnjb_8h_source.html#l00192">njb_struct::protocol_state</a>.</p>

</div>
</div><p>
<a class="anchor" name="gde6296b1920788ae715e8d57d50a9e8a"></a><!-- doxytag: member="libnjb.h::NJB_Send_Track" ref="gde6296b1920788ae715e8d57d50a9e8a" args="(njb_t *njb, const char *path, njb_songid_t *songid, NJB_Xfer_Callback *callback, void *data, u_int32_t *trackid)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int NJB_Send_Track           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__struct.html">njb_t</a> *&nbsp;</td>
          <td class="paramname"> <em>njb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>songid</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="libnjb_8h.html#6efb672d692e39f52eb3589fde051ad2">NJB_Xfer_Callback</a> *&nbsp;</td>
          <td class="paramname"> <em>callback</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t *&nbsp;</td>
          <td class="paramname"> <em>trackid</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This sends ("downloads") a track (playable music file) to the device.<p>
Typical usage:<p>
<pre>
 njb_t *njb;
 njb_songid_t *songid;
 njb_songid_frame_t *frame;
 u_int32_t id;</pre><p>
<pre> songid = <a class="el" href="group__tagapi.html#g78703030798af2be6808335c6542aa6d">NJB_Songid_New()</a>;
 frame = NJB_Songid_Frame_New_Codec(NJB_CODEC_MP3);
 NJB_Songid_Addframe(songid, frame);
 // This one is optional - libnjb will fill it in if not specified
 frame = NJB_Songid_Frame_New_Filesize(12345678);
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Title("MyTitle");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Album("MyAlbum");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Artist("MyArtist");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Genre("MyGenre");
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Year(2004);
 NJB_Songid_Addframe(songid, frame);
 frame = NJB_Songid_Frame_New_Tracknum(1);
 NJB_Songid_Addframe(songid, frame);
 // The length of the track should typically be given, or such things
 // as progress indicators will stop working. If you absolutely want to
 // upload a file of unknown length and break progress indicators, set
 // length to 1 second.
 frame = NJB_Songid_Frame_New_Length(123);
 NJB_Songid_Addframe(songid, frame);
 // This one is optional - libnjb will fill it in if not specified
 frame = NJB_Songid_Frame_New_Filename("Foo.mp3");
 NJB_Songid_Addframe(songid, frame);
 if (NJB_Send_Track (njb, "foo.mp3", songid, NULL, NULL, &amp;id) == -1) {
     NJB_Error_Dump(stderr);
 }
 NJB_Songid_Destroy(songid);
 </pre><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>njb</em>&nbsp;</td><td>a pointer to the <code>njb_t</code> object to send the track file to. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>path</em>&nbsp;</td><td>the filesystem path on the local host to use as indata </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>songid</em>&nbsp;</td><td>the tag for this track, which has to be built separately before the transfer is started with a call to this function. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>callback</em>&nbsp;</td><td>a function that will be called repeatedly to report progress during transfer, used for e.g. displaying progress bars. This may be NULL if you don't want any callbacks. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>data</em>&nbsp;</td><td>a voluntary parameter that can associate some user-supplied data with each callback call. It is OK to set this to NULL of course. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>trackid</em>&nbsp;</td><td>a pointer to an integer that will hold the resulting track ID after this transfer has commenced successfully. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>0 on success, -1 on failure </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__datatagapi.html#g31c21abd0c41827557fa14b13b496d5e">NJB_Send_File()</a> </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="sendtr_8c-example.html#a14">sendtr.c</a>.</dl>
<p>References <a class="el" href="procedure_8c_source.html#l02793">_file_size()</a>, <a class="el" href="libnjb_8h_source.html#l00189">njb_struct::device_type</a>, <a class="el" href="njb__error_8h_source.html#l00034">EO_INVALID</a>, <a class="el" href="njb__error_8h_source.html#l00033">EO_SRCFILE</a>, <a class="el" href="njb__error_8h_source.html#l00022">EO_TOOBIG</a>, <a class="el" href="njb__error_8h_source.html#l00030">EO_XFERDENIED</a>, <a class="el" href="libnjb_8h_source.html#l00120">FR_FNAME</a>, <a class="el" href="libnjb_8h_source.html#l00112">FR_SIZE</a>, <a class="el" href="libnjb_8h_source.html#l00072">NJB_DEVICE_NJB1</a>, <a class="el" href="procedure_8c_source.html#l00657">NJB_Get_Disk_Usage()</a>, <a class="el" href="songid_8c_source.html#l00651">NJB_Songid_Addframe()</a>, <a class="el" href="songid_8c_source.html#l00739">NJB_Songid_Findframe()</a>, <a class="el" href="songid_8c_source.html#l00233">songid_pack()</a>, <a class="el" href="songid_8c_source.html#l00449">songid_pack3()</a>, and <a class="el" href="songid_8c_source.html#l00758">songid_sanity_check()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g0f78d8cde327dd995f7008935e295c37"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Addframe" ref="g0f78d8cde327dd995f7008935e295c37" args="(njb_songid_t *song, njb_songid_frame_t *frame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NJB_Songid_Addframe           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>song</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td>
          <td class="paramname"> <em>frame</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This adds a song ID frame to a song ID.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>song</em>&nbsp;</td><td>the song ID to add the frame to </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>frame</em>&nbsp;</td><td>the frame to add to this song ID </td></tr>
  </table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="sendtr_8c-example.html#a13">sendtr.c</a>, and <a class="el" href="tagtr_8c-example.html#a13">tagtr.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00227">njb_songid_struct::cur</a>, <a class="el" href="libnjb_8h_source.html#l00225">njb_songid_struct::first</a>, <a class="el" href="libnjb_8h_source.html#l00226">njb_songid_struct::last</a>, <a class="el" href="libnjb_8h_source.html#l00215">njb_songid_frame_struct::next</a>, and <a class="el" href="libnjb_8h_source.html#l00224">njb_songid_struct::nframes</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, <a class="el" href="procedure_8c_source.html#l01592">NJB_Send_Track()</a>, <a class="el" href="songid_8c_source.html#l00758">songid_sanity_check()</a>, and <a class="el" href="songid_8c_source.html#l00068">songid_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g188d05568998e787366804565e9fcfb5"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Destroy" ref="g188d05568998e787366804565e9fcfb5" args="(njb_songid_t *song)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NJB_Songid_Destroy           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>songid</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This destroys an entire song ID structure and free the memory used by it.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>songid</em>&nbsp;</td><td>the song ID structure to destroy </td></tr>
  </table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="gettr_8c-example.html#a16">gettr.c</a>, <a class="el" href="sendtr_8c-example.html#a15">sendtr.c</a>, <a class="el" href="tagtr_8c-example.html#a15">tagtr.c</a>, and <a class="el" href="tracks_8c-example.html#a26">tracks.c</a>.</dl>
<p>References <a class="el" href="songid_8c_source.html#l00976">NJB_Songid_Frame_Destroy()</a>, <a class="el" href="songid_8c_source.html#l00720">NJB_Songid_Getframe()</a>, and <a class="el" href="songid_8c_source.html#l00707">NJB_Songid_Reset_Getframe()</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, and <a class="el" href="songid_8c_source.html#l00068">songid_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ge02110b5c20cddfcf92bbdbdeeef4039"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Findframe" ref="ge02110b5c20cddfcf92bbdbdeeef4039" args="(njb_songid_t *song, const char *label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a>* NJB_Songid_Findframe           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>song</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>label</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This locates a particular song ID frame inside a song ID, by using the textual label given.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>song</em>&nbsp;</td><td>the song ID to look in </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>the textual label of the frame to look for </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the song ID frame if found, else NULL </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="gettr_8c-example.html#a12">gettr.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00203">njb_songid_frame_struct::label</a>, <a class="el" href="songid_8c_source.html#l00720">NJB_Songid_Getframe()</a>, and <a class="el" href="songid_8c_source.html#l00707">NJB_Songid_Reset_Getframe()</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l01592">NJB_Send_Track()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g3bb4c23e9166574fdb5f25d082a38b84"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Frame_Destroy" ref="g3bb4c23e9166574fdb5f25d082a38b84" args="(njb_songid_frame_t *frame)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NJB_Songid_Frame_Destroy           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a> *&nbsp;</td>
          <td class="paramname"> <em>frame</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This destroys a song ID frame and free any memory used by it.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>frame</em>&nbsp;</td><td>the song ID frame to destroy </td></tr>
  </table>
</dl>

<p>References <a class="el" href="structnjb__songid__frame__struct.html#10a23445028d703238342f51067b2dbb">njb_songid_frame_struct::data</a>, <a class="el" href="libnjb_8h_source.html#l00203">njb_songid_frame_struct::label</a>, <a class="el" href="libnjb_8h_source.html#l00093">NJB_TYPE_STRING</a>, <a class="el" href="libnjb_8h_source.html#l00209">njb_songid_frame_struct::strval</a>, and <a class="el" href="libnjb_8h_source.html#l00204">njb_songid_frame_struct::type</a>.</p>

<p>Referenced by <a class="el" href="songid_8c_source.html#l00673">NJB_Songid_Destroy()</a>.</p>

</div>
</div><p>
<a class="anchor" name="gbcbe1903a855d72b5e2b933c041a98bf"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Frame_New_Codec" ref="gbcbe1903a855d72b5e2b933c041a98bf" args="(const char *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a>* NJB_Songid_Frame_New_Codec           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>value</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is a wrapper function to fix a common mistake made when creating codec frames: lowercase codec names and other strange mistakes. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="sendtr_8c-example.html#a12">sendtr.c</a>, and <a class="el" href="tagtr_8c-example.html#a12">tagtr.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00114">FR_CODEC</a>, <a class="el" href="libnjb_8h_source.html#l00102">NJB_CODEC_MP3</a>, <a class="el" href="libnjb_8h_source.html#l00104">NJB_CODEC_WAV</a>, <a class="el" href="libnjb_8h_source.html#l00103">NJB_CODEC_WMA</a>, and <a class="el" href="songid_8c_source.html#l00840">NJB_Songid_Frame_New_String()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g0423c3d42d53466d75bb9bf903601285"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Frame_New_String" ref="g0423c3d42d53466d75bb9bf903601285" args="(const char *label, const char *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a>* NJB_Songid_Frame_New_String           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new string frame.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>the label of this string frame </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>the string contained in this string frame </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>valid string frame on success, NULL on failure </dd></dl>

<p>References <a class="el" href="structnjb__songid__frame__struct.html#10a23445028d703238342f51067b2dbb">njb_songid_frame_struct::data</a>, <a class="el" href="libnjb_8h_source.html#l00203">njb_songid_frame_struct::label</a>, <a class="el" href="libnjb_8h_source.html#l00093">NJB_TYPE_STRING</a>, <a class="el" href="libnjb_8h_source.html#l00209">njb_songid_frame_struct::strval</a>, and <a class="el" href="libnjb_8h_source.html#l00204">njb_songid_frame_struct::type</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, <a class="el" href="songid_8c_source.html#l00871">NJB_Songid_Frame_New_Codec()</a>, and <a class="el" href="songid_8c_source.html#l00068">songid_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g144e0f1fbe75bd301c62dcae56d9d3af"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Frame_New_Uint16" ref="g144e0f1fbe75bd301c62dcae56d9d3af" args="(const char *label, u_int16_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a>* NJB_Songid_Frame_New_Uint16           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int16_t&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new unsigned 16-bit integer frame.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>the label of this unsigned 16-bit integer frame </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>the unsigned 16-bit integer contained in this frame </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>valid unsigned 16-bit integer frame on success, NULL on failure </dd></dl>

<p>References <a class="el" href="structnjb__songid__frame__struct.html#10a23445028d703238342f51067b2dbb">njb_songid_frame_struct::data</a>, <a class="el" href="libnjb_8h_source.html#l00203">njb_songid_frame_struct::label</a>, <a class="el" href="libnjb_8h_source.html#l00094">NJB_TYPE_UINT16</a>, <a class="el" href="libnjb_8h_source.html#l00204">njb_songid_frame_struct::type</a>, and <a class="el" href="libnjb_8h_source.html#l00211">njb_songid_frame_struct::u_int16_val</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, and <a class="el" href="songid_8c_source.html#l00068">songid_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g3d4fa0c440b4377a662ff986ba10cddf"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Frame_New_Uint32" ref="g3d4fa0c440b4377a662ff986ba10cddf" args="(const char *label, u_int32_t value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a>* NJB_Songid_Frame_New_Uint32           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>label</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u_int32_t&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new unsigned 32-bit integer frame.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>label</em>&nbsp;</td><td>the label of this unsigned 32-bit integer frame </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>the unsigned 32-bit integer contained in this frame </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>valid unsigned 32-bit integer frame on success, NULL on failure </dd></dl>

<p>References <a class="el" href="structnjb__songid__frame__struct.html#10a23445028d703238342f51067b2dbb">njb_songid_frame_struct::data</a>, <a class="el" href="libnjb_8h_source.html#l00203">njb_songid_frame_struct::label</a>, <a class="el" href="libnjb_8h_source.html#l00095">NJB_TYPE_UINT32</a>, <a class="el" href="libnjb_8h_source.html#l00204">njb_songid_frame_struct::type</a>, and <a class="el" href="libnjb_8h_source.html#l00212">njb_songid_frame_struct::u_int32_val</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, and <a class="el" href="songid_8c_source.html#l00068">songid_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g0013c681283968bf65b564beb8109e5b"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Getframe" ref="g0013c681283968bf65b564beb8109e5b" args="(njb_songid_t *song)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__frame__struct.html">njb_songid_frame_t</a>* NJB_Songid_Getframe           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>song</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This gets the next song ID frame from a song ID structure.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>song</em>&nbsp;</td><td>the song ID to get frames from </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a song ID frame, or NULL if the last frame has already been returned. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__tagapi.html#g8eada6cbbc26c6aa18f3c22a20d38756">NJB_Songid_Reset_Getframe()</a> </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="tracks_8c-example.html#a13">tracks.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00227">njb_songid_struct::cur</a>, and <a class="el" href="libnjb_8h_source.html#l00215">njb_songid_frame_struct::next</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, <a class="el" href="songid_8c_source.html#l00673">NJB_Songid_Destroy()</a>, <a class="el" href="songid_8c_source.html#l00739">NJB_Songid_Findframe()</a>, <a class="el" href="songid_8c_source.html#l00233">songid_pack()</a>, <a class="el" href="songid_8c_source.html#l00449">songid_pack3()</a>, and <a class="el" href="songid_8c_source.html#l00758">songid_sanity_check()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g78703030798af2be6808335c6542aa6d"></a><!-- doxytag: member="libnjb.h::NJB_Songid_New" ref="g78703030798af2be6808335c6542aa6d" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a>* NJB_Songid_New           </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This creates a new song ID holder structure. (A songid in turn contains several frames represening different metadata.)<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a new song ID structure </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="sendtr_8c-example.html#a11">sendtr.c</a>, and <a class="el" href="tagtr_8c-example.html#a11">tagtr.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00228">njb_songid_struct::next</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, and <a class="el" href="songid_8c_source.html#l00068">songid_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="g8eada6cbbc26c6aa18f3c22a20d38756"></a><!-- doxytag: member="libnjb.h::NJB_Songid_Reset_Getframe" ref="g8eada6cbbc26c6aa18f3c22a20d38756" args="(njb_songid_t *song)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void NJB_Songid_Reset_Getframe           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnjb__songid__struct.html">njb_songid_t</a> *&nbsp;</td>
          <td class="paramname"> <em>song</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This resets the internal pointer in the song ID so that it points to the first frame of the song ID. It should typically be called before subsequent calls to <code><a class="el" href="group__tagapi.html#g0013c681283968bf65b564beb8109e5b">NJB_Songid_Getframe()</a></code>.<p>
Typical usage:<p>
<pre>
 njb_songid_t *song;
 njb_songid_frame_t *frame;</pre><p>
<pre> // Get a song ID into "song"...
 NJB_Songid_Reset_Getframe(song);
 while ( (frame = NJB_Songid_Getframe(song)) != NULL ) {
    // Do something with all the frames...
 }
 </pre><p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>song</em>&nbsp;</td><td>the song ID structure whose internal frame pointer shall be reset. </td></tr>
  </table>
</dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="group__tagapi.html#g0013c681283968bf65b564beb8109e5b">NJB_Songid_Getframe()</a> </dd></dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="tracks_8c-example.html#a11">tracks.c</a>.</dl>
<p>References <a class="el" href="libnjb_8h_source.html#l00227">njb_songid_struct::cur</a>, and <a class="el" href="libnjb_8h_source.html#l00225">njb_songid_struct::first</a>.</p>

<p>Referenced by <a class="el" href="procedure_8c_source.html#l02895">NJB_Replace_Track_Tag()</a>, <a class="el" href="songid_8c_source.html#l00673">NJB_Songid_Destroy()</a>, <a class="el" href="songid_8c_source.html#l00739">NJB_Songid_Findframe()</a>, <a class="el" href="songid_8c_source.html#l00233">songid_pack()</a>, <a class="el" href="songid_8c_source.html#l00449">songid_pack3()</a>, and <a class="el" href="songid_8c_source.html#l00758">songid_sanity_check()</a>.</p>

</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jul 26 17:17:29 2009 for libnjb by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>