Sophie

Sophie

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

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/SystemInfo.h Source File</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="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</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 class="header">
  <div class="headertitle">
<h1>/builddir/build/BUILD/libsmbios-2.2.26/src/include/smbios/SystemInfo.h</h1>  </div>
</div>
<div class="contents">
<a href="SystemInfo_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// vim:expandtab:autoindent:tabstop=4:shiftwidth=4:filetype=c:</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2005 Dell Inc.</span>
<a name="l00004"></a>00004 <span class="comment"> *  by Michael Brown &lt;Michael_E_Brown@dell.com&gt;</span>
<a name="l00005"></a>00005 <span class="comment"> * Licensed under the Open Software License version 2.1</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Alternatively, you can redistribute it and/or modify</span>
<a name="l00008"></a>00008 <span class="comment"> * it under the terms of the GNU General Public License as published</span>
<a name="l00009"></a>00009 <span class="comment"> * by the Free Software Foundation; either version 2 of the License,</span>
<a name="l00010"></a>00010 <span class="comment"> * or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"></span>
<a name="l00012"></a>00012 <span class="comment"> * This program is distributed in the hope that it will be useful, but</span>
<a name="l00013"></a>00013 <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span>
<a name="l00015"></a>00015 <span class="comment"> * See the GNU General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> */</span>
<a name="l00017"></a>00017 
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef SYSTEMINFO_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define SYSTEMINFO_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="comment">// C-header files do not include compat.h</span>
<a name="l00023"></a>00023 <span class="comment">// Instead, they should include auto_link.hpp, which sets up automatic</span>
<a name="l00024"></a>00024 <span class="comment">// library selection on MSVC</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &quot;<a class="code" href="auto__link_8hpp.html">smbios/config/auto_link.hpp</a>&quot;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;stdio.h&gt;</span>  <span class="comment">// for size_t</span>
<a name="l00028"></a>00028 
<a name="l00029"></a><a class="code" href="SystemInfo_8h.html#a28478adae961e084d3448f7246db0f5d">00029</a> <span class="preprocessor">#define SMBIOSEXCEPTION             0x01</span>
<a name="l00030"></a><a class="code" href="SystemInfo_8h.html#ad50e8c10a28ea5885a84bcffc68a1a89">00030</a> <span class="preprocessor"></span><span class="preprocessor">#define SMBIOSPARSEEXCEPTION        0x02</span>
<a name="l00031"></a><a class="code" href="SystemInfo_8h.html#a09b3378ce691222cbda145facf0d6451">00031</a> <span class="preprocessor"></span><span class="preprocessor">#define SMBIOSITEMDATAOUTOFBOUNDS   0x03</span>
<a name="l00032"></a><a class="code" href="SystemInfo_8h.html#a57266fda1f7ea1af0949328ae6314e88">00032</a> <span class="preprocessor"></span><span class="preprocessor">#define SMBIOSITEMSTRINGUNAVAILABLE 0x04</span>
<a name="l00033"></a><a class="code" href="SystemInfo_8h.html#a15058cfe08705e142b0934d951c9caf9">00033</a> <span class="preprocessor"></span><span class="preprocessor">#define SMBIOSPERMISSIONEXCEPTION   0x05</span>
<a name="l00034"></a><a class="code" href="SystemInfo_8h.html#a9a33c4ca5e1116c0bd3a3aa4e70558f8">00034</a> <span class="preprocessor"></span><span class="preprocessor">#define SMBIOSPARAMETEREXCEPTION    0x06</span>
<a name="l00035"></a><a class="code" href="SystemInfo_8h.html#a5a8d1260fd36a34fcf15b8ec4813a586">00035</a> <span class="preprocessor"></span><span class="preprocessor">#define INTERNALERROR               0x07</span>
<a name="l00036"></a><a class="code" href="SystemInfo_8h.html#a839a13918c759df06f3e2213e704c414">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define NOTIMPLEMENTED              0x08</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span>
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="preprocessor">#endif</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00044"></a>00044     <span class="comment">//</span>
<a name="l00045"></a>00045     <span class="comment">// Stable API section.</span>
<a name="l00046"></a>00046     <span class="comment">//</span>
<a name="l00047"></a>00047     <span class="comment">// All of the functions in this section have a strong guarantee that we</span>
<a name="l00048"></a>00048     <span class="comment">// will not break API compatibility.</span>
<a name="l00049"></a>00049     <span class="comment">//</span>
<a name="l00051"></a>00051 <span class="comment"></span>
<a name="l00053"></a>00053 
<a name="l00055"></a>00055     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#a179fef70ded0dea46a4a3c07e7a8e93b" title="Return a string representing the version of the libsmbios library.">SMBIOSGetLibraryVersionString</a>();
<a name="l00056"></a>00056 
<a name="l00057"></a>00057 
<a name="l00059"></a>00059 
<a name="l00063"></a>00063     <span class="keywordtype">int</span>         <a class="code" href="SystemInfo_8h.html#aeb69f08fd27048da1cd98208bbaa8df1" title="Return the Dell System ID Byte or Word.">SMBIOSGetDellSystemId</a>();
<a name="l00064"></a>00064 
<a name="l00066"></a>00066 
<a name="l00069"></a>00069     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#afae35db49f1d667cd76502d397b94bff" title="Return a buffer containing the System Name.">SMBIOSGetSystemName</a>();
<a name="l00070"></a>00070 
<a name="l00072"></a>00072 
<a name="l00075"></a>00075     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#a387badb55fb60f90c98a6e8e9f8b0be9" title="Return a buffer containing the BIOS version string.">SMBIOSGetBiosVersion</a>();
<a name="l00076"></a>00076 
<a name="l00078"></a>00078 
<a name="l00081"></a>00081     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#a1d1a3741595bcc1f03177ca3aa2e76e1" title="Returns the 10 character Dell Asset Tag.">SMBIOSGetAssetTag</a>();
<a name="l00082"></a>00082 
<a name="l00084"></a>00084 
<a name="l00087"></a>00087     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#afc8d2fee3ce63ab95b7cd53eab36bb8a" title="Returns the 5 or 7 character Dell Service Tag.">SMBIOSGetServiceTag</a>();
<a name="l00088"></a>00088 
<a name="l00090"></a>00090 
<a name="l00093"></a>00093     <span class="keywordtype">void</span> <a class="code" href="SystemInfo_8h.html#ac13a3407f4de1d1a672a10fb209b5886" title="Free memory allocated by libsmbios.">SMBIOSFreeMemory</a>( <span class="keyword">const</span> <span class="keywordtype">char</span> * );
<a name="l00094"></a>00094 
<a name="l00099"></a>00099     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#a854194dcaf92e36a9d69153ad6dedf4d">SMBIOSGetSysInfoErrorString</a>();
<a name="l00100"></a>00100 
<a name="l00102"></a>00102     <span class="comment">//</span>
<a name="l00103"></a>00103     <span class="comment">// UNStable API section.</span>
<a name="l00104"></a>00104     <span class="comment">//</span>
<a name="l00105"></a>00105     <span class="comment">// API for the following functions has not been frozen yet and is</span>
<a name="l00106"></a>00106     <span class="comment">// subject to change.</span>
<a name="l00107"></a>00107     <span class="comment">//</span>
<a name="l00109"></a>00109 <span class="comment"></span>
<a name="l00110"></a>00110     <span class="comment">// Almost stable</span>
<a name="l00111"></a>00111     <span class="keywordtype">int</span>  <a class="code" href="SystemInfo_8h.html#ab11d541c3b0987b492b0a47fde89f43f">SMBIOSHasBootToUp</a>();
<a name="l00112"></a>00112     <span class="keywordtype">int</span>  <a class="code" href="SystemInfo_8h.html#af3339965bfb7a15e013feb98bcebe26f">SMBIOSGetBootToUp</a>();      <span class="comment">//  -- gets BIOS boot-to-UP flag</span>
<a name="l00113"></a>00113     <span class="keywordtype">void</span> <a class="code" href="SystemInfo_8h.html#a1ab4c8271b0b34b727bac6642d1f79b6">SMBIOSSetBootToUp</a>(<span class="keywordtype">int</span> state);  <span class="comment">//</span>
<a name="l00114"></a>00114 
<a name="l00115"></a>00115     <span class="comment">// Almost stable</span>
<a name="l00116"></a>00116     <span class="keywordtype">int</span>  <a class="code" href="SystemInfo_8h.html#aa916142f036300c34ff431d87f0156b1">SMBIOSHasNvramStateBytes</a>();
<a name="l00117"></a>00117     <span class="keywordtype">int</span>  <a class="code" href="SystemInfo_8h.html#a16bbba4547c230c7b7d5ee5bca74e20a">SMBIOSGetNvramStateBytes</a>(<span class="keywordtype">int</span> user);
<a name="l00118"></a>00118     <span class="keywordtype">void</span> <a class="code" href="SystemInfo_8h.html#aa76f69d038338880e9fcfdb6db4793f8">SMBIOSSetNvramStateBytes</a>(<span class="keywordtype">int</span> value, <span class="keywordtype">int</span> user);
<a name="l00119"></a>00119 
<a name="l00120"></a>00120     <span class="comment">// Almost stable</span>
<a name="l00123"></a>00123 <span class="comment"></span>    <span class="keywordtype">void</span> <a class="code" href="SystemInfo_8h.html#a4ab56ae1fb372298d52390b6ed1112e4">SMBIOSMapAsciiTo_en_US_ScanCode</a>(<span class="keywordtype">char</span> *outputScanCodeBuf, <span class="keyword">const</span> <span class="keywordtype">char</span> *inputAsciiBuf, <span class="keywordtype">size_t</span> outputBufSize);
<a name="l00124"></a>00124 
<a name="l00125"></a>00125     <span class="comment">// Almost stable</span>
<a name="l00131"></a>00131 <span class="comment"></span>    <span class="keywordtype">int</span> <a class="code" href="SystemInfo_8h.html#aaca20904e940f6d49f6b41378ed7850b">SMBIOSGetSmiPasswordCoding</a>();
<a name="l00132"></a>00132 
<a name="l00133"></a>00133     <span class="comment">// Almost stable</span>
<a name="l00135"></a>00135 <span class="comment"></span>    <span class="keywordtype">int</span>  <a class="code" href="SystemInfo_8h.html#a8c189fe43d58c9dfa1167a1e3fe46b56">SMBIOSIsDellSystem</a>();
<a name="l00136"></a>00136 
<a name="l00140"></a>00140     <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="SystemInfo_8h.html#a1dcf5d1dc15d80f42904aedb9e294d37">SMBIOSGetVendorName</a>();  <span class="comment">//    -- Dell or OEM vendor</span>
<a name="l00141"></a>00141 
<a name="l00142"></a>00142     <span class="comment">// almost stable, CMOS-only implemented at this time</span>
<a name="l00144"></a>00144 <span class="comment"></span>
<a name="l00153"></a>00153     <span class="keywordtype">int</span>        <a class="code" href="SystemInfo_8h.html#a5323e94351314511cef2830bd7bdd501" title="Set the 5 or 7 character Dell Service Tag.">SMBIOSSetServiceTag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *password, <span class="keyword">const</span> <span class="keywordtype">char</span> *newTag, <span class="keywordtype">size_t</span> len);
<a name="l00154"></a>00154 
<a name="l00155"></a>00155     <span class="comment">// almost stable, CMOS-only implemented at this time</span>
<a name="l00157"></a>00157 <span class="comment"></span>
<a name="l00165"></a>00165     <span class="keywordtype">int</span>        <a class="code" href="SystemInfo_8h.html#a8375facc08355d5ff5d02364d3d5e1ff" title="Set the Dell Asset Tag.">SMBIOSSetAssetTag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *password, <span class="keyword">const</span> <span class="keywordtype">char</span> *newTag, <span class="keywordtype">size_t</span> len);
<a name="l00166"></a>00166 
<a name="l00167"></a>00167 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span>}
<a name="l00169"></a>00169 <span class="preprocessor">#endif</span>
<a name="l00170"></a>00170 <span class="preprocessor"></span>
<a name="l00171"></a>00171 <span class="preprocessor">#endif  </span><span class="comment">/* SYSTEMINFO_H */</span>
</pre></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>