Sophie

Sophie

distrib > * > cooker > x86_64 > by-pkgid > 12036146830596fff8a6e80859ec761e > files > 120

lib64njb-devel-2.2.6-9.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>libnjb: njb_datafile_struct Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libnjb&#160;<span id="projectnumber">2.2.6</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<h1>njb_datafile_struct Struct Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="njb_datafile_struct" -->
<p><code>#include &lt;<a class="el" href="libnjb_8h_source.html">libnjb.h</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#a1e69ed22f6d3ff77c3434390191cd764">filename</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#ac99996234eaf1ab83538c1fe1f9e53ab">folder</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">u_int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#ade4025a7f0642bf2cde81bf30556c643">timestamp</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">u_int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#a14153d25ae71a35a26c70c30b32c13a0">flags</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">u_int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#acb6d2f4f5fd2c1ea2f9c51fe703887f7">dfid</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">u_int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#aa63b9f2be9c278f1debe38b1b7262c19">filesize</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structnjb__datafile__struct.html">njb_datafile_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#a9e932882b980a2a4065a00697dde2f5e">nextdf</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This is the struct storing the metadata of a regular file or folder. </p>
<dl><dt><b>Examples: </b></dt><dd>
<p><a class="el" href="files_8c-example.html#_a0">files.c</a>, and <a class="el" href="getfile_8c-example.html#_a7">getfile.c</a>.</p>
</dd>
</dl></div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="acb6d2f4f5fd2c1ea2f9c51fe703887f7"></a><!-- doxytag: member="njb_datafile_struct::dfid" ref="acb6d2f4f5fd2c1ea2f9c51fe703887f7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u_int32_t <a class="el" href="structnjb__datafile__struct.html#acb6d2f4f5fd2c1ea2f9c51fe703887f7">njb_datafile_struct::dfid</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The 32-bit unsigned file ID. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="files_8c-example.html#a2">files.c</a>, and <a class="el" href="getfile_8c-example.html#a10">getfile.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1e69ed22f6d3ff77c3434390191cd764"></a><!-- doxytag: member="njb_datafile_struct::filename" ref="a1e69ed22f6d3ff77c3434390191cd764" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="structnjb__datafile__struct.html#a1e69ed22f6d3ff77c3434390191cd764">njb_datafile_struct::filename</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The name of this file. The name "." means that this is an empty folder name marker. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="files_8c-example.html#a3">files.c</a>.</dd>
</dl>
<p>Referenced by <a class="el" href="datafile_8c.html#aa580707078938ef2447d971a96638ce3">datafile_pack()</a>, <a class="el" href="datafile_8c.html#afc23fcd58e9e846ae7aa4ff500f5b198">datafile_pack3()</a>, <a class="el" href="datafile_8c.html#ab8d6674a5aac213059d864b111f10b2d">datafile_set_name()</a>, <a class="el" href="datafile_8c.html#aa0767790f814895d8ddc310d933fb011">datafile_unpack()</a>, and <a class="el" href="group__datatagapi.html#gaf5614490c92803428e896967355431a5">NJB_Datafile_Destroy()</a>.</p>

</div>
</div>
<a class="anchor" id="aa63b9f2be9c278f1debe38b1b7262c19"></a><!-- doxytag: member="njb_datafile_struct::filesize" ref="aa63b9f2be9c278f1debe38b1b7262c19" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u_int64_t <a class="el" href="structnjb__datafile__struct.html#aa63b9f2be9c278f1debe38b1b7262c19">njb_datafile_struct::filesize</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The file size as a 64-bit unsigned integer. The files on series 3 devices only have 32-bit signed length (and can only be 2GB in size) but the NJB1 supports 64-bit length. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="files_8c-example.html#a1">files.c</a>, and <a class="el" href="getfile_8c-example.html#a11">getfile.c</a>.</dd>
</dl>
<p>Referenced by <a class="el" href="datafile_8c.html#aa580707078938ef2447d971a96638ce3">datafile_pack()</a>, <a class="el" href="datafile_8c.html#afc23fcd58e9e846ae7aa4ff500f5b198">datafile_pack3()</a>, <a class="el" href="datafile_8c.html#ad8cf05786cb9088cd9ae1bbb2100ea62">datafile_set_size()</a>, <a class="el" href="datafile_8c.html#a7fac749db92f4ff7be5d7f4fd041016d">datafile_size()</a>, and <a class="el" href="datafile_8c.html#aa0767790f814895d8ddc310d933fb011">datafile_unpack()</a>.</p>

</div>
</div>
<a class="anchor" id="a14153d25ae71a35a26c70c30b32c13a0"></a><!-- doxytag: member="njb_datafile_struct::flags" ref="a14153d25ae71a35a26c70c30b32c13a0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u_int32_t <a class="el" href="structnjb__datafile__struct.html#a14153d25ae71a35a26c70c30b32c13a0">njb_datafile_struct::flags</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>These are ordinary windows file flags: </p>
<pre>
 bit (from MSB)   meaning
 -----------------------------
 31               Normal file (0x80000000U)
 29               This file should be archived (0x20000000U) 
 28               Directory (0x10000000U)
 26               System file (0x04000000U)
 25               Hidden file (0x02000000U)
 24               Read only file (0x01000000U)
 22               Encrypted file (0x00400000U)
 21               Normal file? (0x00200000U)
 19               Compressed file (0x00080000U)
 17               Sparse file (0x00020000U)
 16               Temporary file (0x00010000U)
 </pre><p>SAMBA maps the bits to Unix permissions thus:</p>
<pre>
  owner        group        world
  r  w  x      r  w  x      r  w  x
  ^  ^  ^            ^            ^
  |  |  |            |            |
  |  |  Archive      System       Hidden
  |  |
  Read only
 </pre><p>The meaning of bits 30, 27, 23, 20 and 15-0 is unknown. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="files_8c-example.html#a5">files.c</a>.</dd>
</dl>
<p>Referenced by <a class="el" href="datafile_8c.html#aa0767790f814895d8ddc310d933fb011">datafile_unpack()</a>.</p>

</div>
</div>
<a class="anchor" id="ac99996234eaf1ab83538c1fe1f9e53ab"></a><!-- doxytag: member="njb_datafile_struct::folder" ref="ac99996234eaf1ab83538c1fe1f9e53ab" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="structnjb__datafile__struct.html#ac99996234eaf1ab83538c1fe1f9e53ab">njb_datafile_struct::folder</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is the name of the folder the file belongs in. All folder names are given with full hierarchy and leading and trailing backslash as in: "\foo\bar\fnord\". If filename is "." this is the name of the empty folder. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="files_8c-example.html#a4">files.c</a>.</dd>
</dl>
<p>Referenced by <a class="el" href="datafile_8c.html#afc23fcd58e9e846ae7aa4ff500f5b198">datafile_pack3()</a>, <a class="el" href="datafile_8c.html#ad492fd31f9f4bce733c174e21862b5d5">datafile_set_folder()</a>, <a class="el" href="datafile_8c.html#aa0767790f814895d8ddc310d933fb011">datafile_unpack()</a>, and <a class="el" href="group__datatagapi.html#gaf5614490c92803428e896967355431a5">NJB_Datafile_Destroy()</a>.</p>

</div>
</div>
<a class="anchor" id="a9e932882b980a2a4065a00697dde2f5e"></a><!-- doxytag: member="njb_datafile_struct::nextdf" ref="a9e932882b980a2a4065a00697dde2f5e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structnjb__datafile__struct.html">njb_datafile_t</a>* <a class="el" href="structnjb__datafile__struct.html#a9e932882b980a2a4065a00697dde2f5e">njb_datafile_struct::nextdf</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is only to be used internally by libnjb. </p>

</div>
</div>
<a class="anchor" id="ade4025a7f0642bf2cde81bf30556c643"></a><!-- doxytag: member="njb_datafile_struct::timestamp" ref="ade4025a7f0642bf2cde81bf30556c643" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u_int32_t <a class="el" href="structnjb__datafile__struct.html#ade4025a7f0642bf2cde81bf30556c643">njb_datafile_struct::timestamp</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This is an ordinary UNIX styled timestamp for the file. </p>

<p>Referenced by <a class="el" href="datafile_8c.html#afc23fcd58e9e846ae7aa4ff500f5b198">datafile_pack3()</a>, and <a class="el" href="datafile_8c.html#a7bb708f3e8952b778446f2fcef87fe61">datafile_set_time()</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>/home/mandrake/rpm/BUILD/libnjb-2.2.6/src/<a class="el" href="libnjb_8h_source.html">libnjb.h</a></li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon May 2 2011 06:05:24 for libnjb by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>