Sophie

Sophie

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

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: 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.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 class="current"><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 class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>njb_datafile_struct Struct Reference</h1><!-- doxytag: class="njb_datafile_struct" --><code>#include &lt;<a class="el" href="libnjb_8h_source.html">libnjb.h</a>&gt;</code>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#1e69ed22f6d3ff77c3434390191cd764">filename</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#c99996234eaf1ab83538c1fe1f9e53ab">folder</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#de4025a7f0642bf2cde81bf30556c643">timestamp</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#14153d25ae71a35a26c70c30b32c13a0">flags</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#cb6d2f4f5fd2c1ea2f9c51fe703887f7">dfid</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">u_int64_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#a63b9f2be9c278f1debe38b1b7262c19">filesize</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structnjb__datafile__struct.html">njb_datafile_t</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structnjb__datafile__struct.html#9e932882b980a2a4065a00697dde2f5e">nextdf</a></td></tr>

</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is the struct storing the metadata of a regular file or folder. <dl compact><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>.</dl><hr><h2>Field Documentation</h2>
<a class="anchor" name="cb6d2f4f5fd2c1ea2f9c51fe703887f7"></a><!-- doxytag: member="njb_datafile_struct::dfid" ref="cb6d2f4f5fd2c1ea2f9c51fe703887f7" 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#cb6d2f4f5fd2c1ea2f9c51fe703887f7">njb_datafile_struct::dfid</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The 32-bit unsigned file ID. <dl compact><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>.</dl>
</div>
</div><p>
<a class="anchor" name="1e69ed22f6d3ff77c3434390191cd764"></a><!-- doxytag: member="njb_datafile_struct::filename" ref="1e69ed22f6d3ff77c3434390191cd764" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="structnjb__datafile__struct.html#1e69ed22f6d3ff77c3434390191cd764">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. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="files_8c-example.html#a3">files.c</a>.</dl>
<p>Referenced by <a class="el" href="datafile_8c_source.html#l00238">datafile_pack()</a>, <a class="el" href="datafile_8c_source.html#l00321">datafile_pack3()</a>, <a class="el" href="datafile_8c_source.html#l00118">datafile_set_name()</a>, <a class="el" href="datafile_8c_source.html#l00164">datafile_unpack()</a>, and <a class="el" href="datafile_8c_source.html#l00052">NJB_Datafile_Destroy()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a63b9f2be9c278f1debe38b1b7262c19"></a><!-- doxytag: member="njb_datafile_struct::filesize" ref="a63b9f2be9c278f1debe38b1b7262c19" 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#a63b9f2be9c278f1debe38b1b7262c19">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. <dl compact><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>.</dl>
<p>Referenced by <a class="el" href="datafile_8c_source.html#l00238">datafile_pack()</a>, <a class="el" href="datafile_8c_source.html#l00321">datafile_pack3()</a>, <a class="el" href="datafile_8c_source.html#l00089">datafile_set_size()</a>, <a class="el" href="datafile_8c_source.html#l00071">datafile_size()</a>, and <a class="el" href="datafile_8c_source.html#l00164">datafile_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="14153d25ae71a35a26c70c30b32c13a0"></a><!-- doxytag: member="njb_datafile_struct::flags" ref="14153d25ae71a35a26c70c30b32c13a0" 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#14153d25ae71a35a26c70c30b32c13a0">njb_datafile_struct::flags</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
These are ordinary windows file flags: <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. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="files_8c-example.html#a5">files.c</a>.</dl>
<p>Referenced by <a class="el" href="datafile_8c_source.html#l00164">datafile_unpack()</a>.</p>

</div>
</div><p>
<a class="anchor" name="c99996234eaf1ab83538c1fe1f9e53ab"></a><!-- doxytag: member="njb_datafile_struct::folder" ref="c99996234eaf1ab83538c1fe1f9e53ab" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="structnjb__datafile__struct.html#c99996234eaf1ab83538c1fe1f9e53ab">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. <dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="files_8c-example.html#a4">files.c</a>.</dl>
<p>Referenced by <a class="el" href="datafile_8c_source.html#l00321">datafile_pack3()</a>, <a class="el" href="datafile_8c_source.html#l00142">datafile_set_folder()</a>, <a class="el" href="datafile_8c_source.html#l00164">datafile_unpack()</a>, and <a class="el" href="datafile_8c_source.html#l00052">NJB_Datafile_Destroy()</a>.</p>

</div>
</div><p>
<a class="anchor" name="9e932882b980a2a4065a00697dde2f5e"></a><!-- doxytag: member="njb_datafile_struct::nextdf" ref="9e932882b980a2a4065a00697dde2f5e" 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#9e932882b980a2a4065a00697dde2f5e">njb_datafile_struct::nextdf</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is only to be used internally by libnjb. 
</div>
</div><p>
<a class="anchor" name="de4025a7f0642bf2cde81bf30556c643"></a><!-- doxytag: member="njb_datafile_struct::timestamp" ref="de4025a7f0642bf2cde81bf30556c643" 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#de4025a7f0642bf2cde81bf30556c643">njb_datafile_struct::timestamp</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is an ordinary UNIX styled timestamp for the file. 
<p>Referenced by <a class="el" href="datafile_8c_source.html#l00321">datafile_pack3()</a>, and <a class="el" href="datafile_8c_source.html#l00103">datafile_set_time()</a>.</p>

</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>/builddir/build/BUILD/libnjb-2.2.6/src/<a class="el" href="libnjb_8h_source.html">libnjb.h</a></ul>
</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>