Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > f831237475ece7d1519c6812064707d4 > files > 71

libnfc-devel-1.4.2-1.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>libnfc: nfc-messages.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.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">libnfc&#160;<span id="projectnumber">1.4.2</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="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="dir_41028febda0963323f7e6054c1e7205d.html">include</a>      </li>
      <li class="navelem"><a class="el" href="dir_70f07fa48bb0d24326c844d55c4ad9eb.html">nfc</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<h1>nfc-messages.h</h1>  </div>
</div>
<div class="contents">
<a href="nfc-messages_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00023"></a>00023 <span class="comment">// TODO remove this file from installed headers.</span>
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef _LIBNFC_MESSAGES_H_</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#  define _LIBNFC_MESSAGES_H_</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#  include &lt;err.h&gt;</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="comment">// #define DEBUG   /* DEBUG flag can also be enabled using ./configure --enable-debug */</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">// Useful macros</span>
<a name="l00032"></a>00032 <span class="preprocessor">#  ifdef DEBUG</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="comment">//   #define DBG(x, args...) printf(&quot;DBG %s:%d: &quot; x &quot;\n&quot;, __FILE__, __LINE__,## args )</span>
<a name="l00034"></a>00034 <span class="preprocessor">#    define DBG(...) do { \</span>
<a name="l00035"></a>00035 <span class="preprocessor">    warnx (&quot;DBG %s:%d&quot;, __FILE__, __LINE__); \</span>
<a name="l00036"></a>00036 <span class="preprocessor">    warnx (&quot;    &quot; __VA_ARGS__ ); \</span>
<a name="l00037"></a>00037 <span class="preprocessor">  } while (0)</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#    define DBG(...) {}</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#  define WARN(...) warnx (&quot;WARNING: &quot; __VA_ARGS__ )</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#  define ERR(...)  warnx (&quot;ERROR: &quot; __VA_ARGS__ )</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="preprocessor">#endif // _LIBNFC_MESSAGES_H_</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Feb 23 2011 for libnfc 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>