Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 6c21d55247420ace69cad1d05267fc34 > files > 18

pcsc-lite-doc-1.7.2-4.fc15.noarch.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>pcsc-lite: debuglog.c 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.4 -->
<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">pcsc-lite&#160;<span id="projectnumber">1.7.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="modules.html"><span>Modules</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_7a4553ee0c3b13d0e595a5d1659110a6.html">src</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">debuglog.c File Reference</div>  </div>
</div>
<div class="contents">

<p>This handles debugging for pcscd.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;config.h&quot;</code><br/>
<code>#include &lt;unistd.h&gt;</code><br/>
<code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;stdarg.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &lt;sys/types.h&gt;</code><br/>
<code>#include &lt;sys/time.h&gt;</code><br/>
<code>#include &lt;time.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="pcsclite_8h_source.html">pcsclite.h</a>&quot;</code><br/>
<code>#include &quot;misc.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="debuglog_8h_source.html">debuglog.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="sys__generic_8h_source.html">sys_generic.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="strlcpycat_8h_source.html">strlcpycat.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for debuglog.c:</div>
<div class="dyncontent">
<div class="center"><img src="debuglog_8c__incl.png" border="0" usemap="#debuglog_8c" alt=""/></div>
<map name="debuglog_8c" id="debuglog_8c">
<area shape="rect" id="node23" href="pcsclite_8h.html" title="This keeps a list of defines for pcsc&#45;lite." alt="" coords="939,83,1016,112"/><area shape="rect" id="node27" href="misc_8h_source.html" title="misc.h" alt="" coords="1040,83,1101,112"/><area shape="rect" id="node29" href="debuglog_8h.html" title="This handles debugging." alt="" coords="1125,83,1211,112"/><area shape="rect" id="node31" href="sys__generic_8h.html" title="This handles abstract system level calls." alt="" coords="1235,83,1336,112"/><area shape="rect" id="node37" href="strlcpycat_8h.html" title="prototypes of strlcpy()/strlcat() imported from OpenBSD" alt="" coords="1360,83,1451,112"/><area shape="rect" id="node25" href="wintypes_8h.html" title="This keeps a list of Windows(R) types." alt="" coords="935,160,1020,189"/></map>
</div>
</div>
<p><a href="debuglog_8c_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"><a class="anchor" id="a758f9da8805a79adbe236829c3802703"></a><!-- doxytag: member="debuglog.c::DEBUG_BUF_SIZE" ref="a758f9da8805a79adbe236829c3802703" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debuglog_8c.html#a758f9da8805a79adbe236829c3802703">DEBUG_BUF_SIZE</a>&#160;&#160;&#160;2048</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Max string size when dumping a 256 bytes longs APDU Should be bigger than 256*3+30. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae348e3fa98fff148d977c7102eb43edc"></a><!-- doxytag: member="debuglog.c::DEBUG_INFO_LENGTH" ref="ae348e3fa98fff148d977c7102eb43edc" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><b>DEBUG_INFO_LENGTH</b>&#160;&#160;&#160;80</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31199b47af8a1b6bf688af0019e55c6c"></a><!-- doxytag: member="debuglog.c::log_line" ref="a31199b47af8a1b6bf688af0019e55c6c" args="(const int priority, const char *DebugBuffer)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>log_line</b> (const int priority, const char *DebugBuffer)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15dd86fc37d3115cc91255beffd9be89"></a><!-- doxytag: member="debuglog.c::log_msg" ref="a15dd86fc37d3115cc91255beffd9be89" args="(const int priority, const char *fmt,...)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>log_msg</b> (const int priority, const char *fmt,...)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a14656367c5f33644a2c1b90aa83e97"></a><!-- doxytag: member="debuglog.c::log_xxd_always" ref="a9a14656367c5f33644a2c1b90aa83e97" args="(const int priority, const char *msg, const unsigned char *buffer, const int len)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><b>log_xxd_always</b> (const int priority, const char *msg, const unsigned char *buffer, const int len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80e78cc01cf59e77e4a9ced81df7747c"></a><!-- doxytag: member="debuglog.c::log_xxd" ref="a80e78cc01cf59e77e4a9ced81df7747c" args="(const int priority, const char *msg, const unsigned char *buffer, const int len)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>log_xxd</b> (const int priority, const char *msg, const unsigned char *buffer, const int len)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95f79cd84134469df06de409b2774fb8"></a><!-- doxytag: member="debuglog.c::DebugLogSuppress" ref="a95f79cd84134469df06de409b2774fb8" args="(const int lSType)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>DebugLogSuppress</b> (const int lSType)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80da114839ae91a3ee976b5519a0d1f8"></a><!-- doxytag: member="debuglog.c::DebugLogSetLogType" ref="a80da114839ae91a3ee976b5519a0d1f8" args="(const int dbgtype)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>DebugLogSetLogType</b> (const int dbgtype)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9968a17a8ed23465d9c562886afca59"></a><!-- doxytag: member="debuglog.c::DebugLogSetLevel" ref="aa9968a17a8ed23465d9c562886afca59" args="(const int level)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><b>DebugLogSetLevel</b> (const int level)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03f741c728a705002b8be8cba724a1f9"></a><!-- doxytag: member="debuglog.c::DebugLogSetCategory" ref="a03f741c728a705002b8be8cba724a1f9" args="(const int dbginfo)" -->
INTERNAL int&#160;</td><td class="memItemRight" valign="bottom"><b>DebugLogSetCategory</b> (const int dbginfo)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af704db33dad5aa6b9d0f9f7a6de53353"></a><!-- doxytag: member="debuglog.c::DebugLogCategory" ref="af704db33dad5aa6b9d0f9f7a6de53353" args="(const int category, const unsigned char *buffer, const int len)" -->
INTERNAL void&#160;</td><td class="memItemRight" valign="bottom"><b>DebugLogCategory</b> (const int category, const unsigned char *buffer, const int len)</td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa51a123e1f1ea363d8fa4ff4bd28dda"></a><!-- doxytag: member="debuglog.c::LogSuppress" ref="afa51a123e1f1ea363d8fa4ff4bd28dda" args="" -->
static char&#160;</td><td class="memItemRight" valign="bottom"><b>LogSuppress</b> = DEBUGLOG_LOG_ENTRIES</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19923113331304a13f9364e9b39a9397"></a><!-- doxytag: member="debuglog.c::LogMsgType" ref="a19923113331304a13f9364e9b39a9397" args="" -->
static char&#160;</td><td class="memItemRight" valign="bottom"><b>LogMsgType</b> = DEBUGLOG_NO_DEBUG</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1243a627348fb8781418c0726832933a"></a><!-- doxytag: member="debuglog.c::LogCategory" ref="a1243a627348fb8781418c0726832933a" args="" -->
static char&#160;</td><td class="memItemRight" valign="bottom"><b>LogCategory</b> = DEBUG_CATEGORY_NOTHING</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a731a4e24c38dae1ffdb9bed5abfe945f"></a><!-- doxytag: member="debuglog.c::LogLevel" ref="a731a4e24c38dae1ffdb9bed5abfe945f" args="" -->
static char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debuglog_8c.html#a731a4e24c38dae1ffdb9bed5abfe945f">LogLevel</a> = PCSC_LOG_ERROR</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">default level <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9814cd7cb6a5bdc3d3250f957821136"></a><!-- doxytag: member="debuglog.c::LogDoColor" ref="ad9814cd7cb6a5bdc3d3250f957821136" args="" -->
static signed char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debuglog_8c.html#ad9814cd7cb6a5bdc3d3250f957821136">LogDoColor</a> = 0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">no color by default <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This handles debugging for pcscd. </p>

<p>Definition in file <a class="el" href="debuglog_8c_source.html">debuglog.c</a>.</p>
</div></div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Sep 15 2011 for pcsc-lite by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>