Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > a65517607ef053b8c8e6c720e8c36e77 > files > 342

libsmbios-devel-2.2.26-3.fc14.i686.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>libsmbios_c library: /builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios_c/smbios.h File 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.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<h1>/builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios_c/smbios.h File Reference</h1>  </div>
</div>
<div class="contents">
<code>#include &quot;<a class="el" href="compat_8h_source.html">smbios_c/compat.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="types_8h_source.html">smbios_c/types.h</a>&quot;</code><br/>

<p><a href="smbios_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a3e3af00cc6e9d5b24ac1eed09c0b6eab">smbios_for_each_struct</a>(struct_name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">looping helper macro.  <a href="#a3e3af00cc6e9d5b24ac1eed09c0b6eab"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a3cd17f665e1097f549e94f16558eb151">smbios_for_each_struct_type</a>(struct_name, struct_type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">looping helper macro.  <a href="#a3cd17f665e1097f549e94f16558eb151"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC struct <br class="typebreak"/>
smbios_struct *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#aa1972a6cc136ff7cad9b54a58e575dd2">smbios_get_next_struct</a> (const struct smbios_struct *cur)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function for looping over smbios table structures.  <a href="#aa1972a6cc136ff7cad9b54a58e575dd2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC struct <br class="typebreak"/>
smbios_struct *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#ad508a07ae7173b6dba75feef184f9065">smbios_get_next_struct_by_type</a> (const struct smbios_struct *cur, <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a> type)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function for looping over smbios table structures by type.  <a href="#ad508a07ae7173b6dba75feef184f9065"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC struct <br class="typebreak"/>
smbios_struct *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#af8422da0db3238606567d99f172ab61a">smbios_get_next_struct_by_handle</a> (const struct smbios_struct *cur, <a class="el" href="types_8h.html#a9e6c91d77e24643b888dbd1a1a590054">u16</a> handle)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function for looping over smbios table structures by handle.  <a href="#af8422da0db3238606567d99f172ab61a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a74938ae83cade6b64aa3e3d1aa528d27">smbios_walk</a> (void(*fn)(const struct smbios_struct *, void *userdata), void *userdata)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Call a named function for each smbios structure.  <a href="#a74938ae83cade6b64aa3e3d1aa528d27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#ace945e5883d8d3c8881e2d0881f709d6">smbios_struct_get_type</a> (const struct smbios_struct *)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the structure type of a given smbios structure.  <a href="#ace945e5883d8d3c8881e2d0881f709d6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a6356c3945eb938cf2a817b6d1b6755d5">smbios_struct_get_length</a> (const struct smbios_struct *)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the structure length of a given smbios structure.  <a href="#a6356c3945eb938cf2a817b6d1b6755d5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC <a class="el" href="types_8h.html#a9e6c91d77e24643b888dbd1a1a590054">u16</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a6f3d19fd68a0e66af28f484de5c14a6e">smbios_struct_get_handle</a> (const struct smbios_struct *)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the structure handle of a given smbios structure.  <a href="#a6f3d19fd68a0e66af28f484de5c14a6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a0ff171695371a1e6a8109e3b85a7fad7">smbios_struct_get_data</a> (const struct smbios_struct *s, void *dest, <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a> offset, size_t len)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy data out of the smbios structure.  <a href="#a0ff171695371a1e6a8109e3b85a7fad7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a2029f423ee799d68f9f84d3fe0aa8951">smbios_struct_get_string_from_offset</a> (const struct smbios_struct *s, <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a> offset)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get string from smbios structure.  <a href="#a2029f423ee799d68f9f84d3fe0aa8951"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#ac21e4ac171ace2d9a33a9257d1341baf">smbios_struct_get_string_number</a> (const struct smbios_struct *s, <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a> which)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get string from smbios structure.  <a href="#ac21e4ac171ace2d9a33a9257d1341baf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LIBSMBIOS_C_DLL_SPEC const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="smbios_8h.html#a7a49396018509f71b27b80f01a26be7c">smbios_strerror</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns string describing the last error condition.  <a href="#a7a49396018509f71b27b80f01a26be7c"></a><br/></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a3e3af00cc6e9d5b24ac1eed09c0b6eab"></a><!-- doxytag: member="smbios.h::smbios_for_each_struct" ref="a3e3af00cc6e9d5b24ac1eed09c0b6eab" args="(struct_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define smbios_for_each_struct</td>
          <td>(</td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname">struct_name</td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">for</span>(    \
            <span class="keyword">const</span> <span class="keyword">struct</span> smbios_struct *struct_name = <a class="code" href="smbios_8h.html#aa1972a6cc136ff7cad9b54a58e575dd2" title="Function for looping over smbios table structures.">smbios_get_next_struct</a>(0);\
            struct_name;\
            struct_name = <a class="code" href="smbios_8h.html#aa1972a6cc136ff7cad9b54a58e575dd2" title="Function for looping over smbios table structures.">smbios_get_next_struct</a>(struct_name)\
           )
</pre></div>
<p>looping helper macro. </p>
<p>This macro makes it easy to loop over each structure in the smbios table </p>

</div>
</div>
<a class="anchor" id="a3cd17f665e1097f549e94f16558eb151"></a><!-- doxytag: member="smbios.h::smbios_for_each_struct_type" ref="a3cd17f665e1097f549e94f16558eb151" args="(struct_name, struct_type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define smbios_for_each_struct_type</td>
          <td>(</td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname">struct_name, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname">struct_type</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment"><span class="keywordflow">for</span>(    \
            <span class="keyword">const</span> <span class="keyword">struct</span> smbios_struct *struct_name = <a class="code" href="smbios_8h.html#ad508a07ae7173b6dba75feef184f9065" title="Function for looping over smbios table structures by type.">smbios_get_next_struct_by_type</a>(0, struct_type);\
            struct_name;\
            struct_name = <a class="code" href="smbios_8h.html#ad508a07ae7173b6dba75feef184f9065" title="Function for looping over smbios table structures by type.">smbios_get_next_struct_by_type</a>(struct_name, struct_type)\
           )
</pre></div>
<p>looping helper macro. </p>
<p>This macro makes it easy to loop over specific structure types in the smbios table </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="aa1972a6cc136ff7cad9b54a58e575dd2"></a><!-- doxytag: member="smbios.h::smbios_get_next_struct" ref="aa1972a6cc136ff7cad9b54a58e575dd2" args="(const struct smbios_struct *cur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC struct smbios_struct* smbios_get_next_struct </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"> <em>cur</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Function for looping over smbios table structures. </p>
<p>Returns a pointer to the next smbios structure. You can cast this structure to a specific smbios structure, or you can use the generic access methods to pull data out of the structure. Returns 0 on end of table. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cur</em>&nbsp;</td><td>pointer to current structure, or 0 to begin at the start of the table. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to next smbios structure. returns 0 on end of table. </dd></dl>

</div>
</div>
<a class="anchor" id="af8422da0db3238606567d99f172ab61a"></a><!-- doxytag: member="smbios.h::smbios_get_next_struct_by_handle" ref="af8422da0db3238606567d99f172ab61a" args="(const struct smbios_struct *cur, u16 handle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC struct smbios_struct* smbios_get_next_struct_by_handle </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"> <em>cur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a9e6c91d77e24643b888dbd1a1a590054">u16</a>&nbsp;</td>
          <td class="paramname"> <em>handle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Function for looping over smbios table structures by handle. </p>
<p>Returns a pointer to the next smbios structure with a given handle. You can cast this structure to a specific smbios structure, or you can use the generic access methods to pull data out of the structure. Returns 0 on end of table. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cur</em>&nbsp;</td><td>pointer to current structure, or 0 to begin at the start of the table. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>handle</em>&nbsp;</td><td>only return smbios structures matching handle </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to next smbios structure. returns 0 on end of table. </dd></dl>

</div>
</div>
<a class="anchor" id="ad508a07ae7173b6dba75feef184f9065"></a><!-- doxytag: member="smbios.h::smbios_get_next_struct_by_type" ref="ad508a07ae7173b6dba75feef184f9065" args="(const struct smbios_struct *cur, u8 type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC struct smbios_struct* smbios_get_next_struct_by_type </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"> <em>cur</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a>&nbsp;</td>
          <td class="paramname"> <em>type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [read]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Function for looping over smbios table structures by type. </p>
<p>Returns a pointer to the next smbios structure with a given type. You can cast this structure to a specific smbios structure, or you can use the generic access methods to pull data out of the structure. Returns 0 on end of table. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cur</em>&nbsp;</td><td>pointer to current structure, or 0 to begin at the start of the table. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>only return smbios structures matching type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to next smbios structure. returns 0 on end of table. </dd></dl>

</div>
</div>
<a class="anchor" id="a7a49396018509f71b27b80f01a26be7c"></a><!-- doxytag: member="smbios.h::smbios_strerror" ref="a7a49396018509f71b27b80f01a26be7c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC const char* smbios_strerror </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns string describing the last error condition. </p>
<p>Can return 0. The buffer used is guaranteed to be valid until the next call to any smbios_* function. Copy the contents if you need it longer. </p>

</div>
</div>
<a class="anchor" id="a0ff171695371a1e6a8109e3b85a7fad7"></a><!-- doxytag: member="smbios.h::smbios_struct_get_data" ref="a0ff171695371a1e6a8109e3b85a7fad7" args="(const struct smbios_struct *s, void *dest, u8 offset, size_t len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC int smbios_struct_get_data </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>dest</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&nbsp;</td>
          <td class="paramname"> <em>len</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Copy data out of the smbios structure. </p>
<p>Does bounds-checking to ensure that structure overflows do not happen. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>pointer to structure to access </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dest</em>&nbsp;</td><td>pointer to user-allocated buffer to fill </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>offset in structure </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>len</em>&nbsp;</td><td>length of data to copy into buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>returns 0 on success, &lt;0 on failure. </dd></dl>

</div>
</div>
<a class="anchor" id="a6f3d19fd68a0e66af28f484de5c14a6e"></a><!-- doxytag: member="smbios.h::smbios_struct_get_handle" ref="a6f3d19fd68a0e66af28f484de5c14a6e" args="(const struct smbios_struct *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC <a class="el" href="types_8h.html#a9e6c91d77e24643b888dbd1a1a590054">u16</a> smbios_struct_get_handle </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the structure handle of a given smbios structure. </p>

</div>
</div>
<a class="anchor" id="a6356c3945eb938cf2a817b6d1b6755d5"></a><!-- doxytag: member="smbios.h::smbios_struct_get_length" ref="a6356c3945eb938cf2a817b6d1b6755d5" args="(const struct smbios_struct *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a> smbios_struct_get_length </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the structure length of a given smbios structure. </p>

</div>
</div>
<a class="anchor" id="a2029f423ee799d68f9f84d3fe0aa8951"></a><!-- doxytag: member="smbios.h::smbios_struct_get_string_from_offset" ref="a2029f423ee799d68f9f84d3fe0aa8951" args="(const struct smbios_struct *s, u8 offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC const char* smbios_struct_get_string_from_offset </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>get string from smbios structure. </p>
<p>Most smbios structures have specific offsets that contain a string number. This function will look up the offset and retrieve the pointed-to string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>pointer to smbios structure </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>offset containing string pointer </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>returns a pointer to the string, or 0 on failure. </dd></dl>

</div>
</div>
<a class="anchor" id="ac21e4ac171ace2d9a33a9257d1341baf"></a><!-- doxytag: member="smbios.h::smbios_struct_get_string_number" ref="ac21e4ac171ace2d9a33a9257d1341baf" args="(const struct smbios_struct *s, u8 which)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC const char* smbios_struct_get_string_number </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a>&nbsp;</td>
          <td class="paramname"> <em>which</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>get string from smbios structure. </p>
<p>Retrieves string N from the end of a smbios structure. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>pointer to smbios structure </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>which</em>&nbsp;</td><td>string number to return </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ace945e5883d8d3c8881e2d0881f709d6"></a><!-- doxytag: member="smbios.h::smbios_struct_get_type" ref="ace945e5883d8d3c8881e2d0881f709d6" args="(const struct smbios_struct *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC <a class="el" href="types_8h.html#aed742c436da53c1080638ce6ef7d13de">u8</a> smbios_struct_get_type </td>
          <td>(</td>
          <td class="paramtype">const struct smbios_struct *&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the structure type of a given smbios structure. </p>

</div>
</div>
<a class="anchor" id="a74938ae83cade6b64aa3e3d1aa528d27"></a><!-- doxytag: member="smbios.h::smbios_walk" ref="a74938ae83cade6b64aa3e3d1aa528d27" args="(void(*fn)(const struct smbios_struct *, void *userdata), void *userdata)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LIBSMBIOS_C_DLL_SPEC void smbios_walk </td>
          <td>(</td>
          <td class="paramtype">void(*)(const struct smbios_struct *, void *userdata)&nbsp;</td>
          <td class="paramname"> <em>fn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>userdata</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Call a named function for each smbios structure. </p>
<p>Calls the given function for each smbios table structure. Passes a pointer to the structure as well as the userdata pointer given. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fn</em>&nbsp;</td><td>pointer to the function to call </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>userdata</em>&nbsp;</td><td>opaque pointer that will be passed to the funciton </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Tue Oct 5 2010 for libsmbios_c library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>