Sophie

Sophie

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

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: ifdwrapper.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="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ifdwrapper.c File Reference</div>  </div>
</div>
<div class="contents">

<p>This wraps the dynamic ifdhandler functions.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;errno.h&gt;</code><br/>
<code>#include &lt;unistd.h&gt;</code><br/>
<code>#include &lt;pthread.h&gt;</code><br/>
<code>#include &quot;config.h&quot;</code><br/>
<code>#include &quot;misc.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="pcscd_8h_source.html">pcscd.h</a>&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="readerfactory_8h_source.html">readerfactory.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="ifdwrapper_8h_source.html">ifdwrapper.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="atrhandler_8h_source.html">atrhandler.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="dyn__generic_8h_source.html">dyn_generic.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;utils.h&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Include dependency graph for ifdwrapper.c:</div>
<div class="dyncontent">
<div class="center"><img src="ifdwrapper_8c__incl.png" border="0" usemap="#ifdwrapper_8c" alt=""/></div>
<map name="ifdwrapper_8c" id="ifdwrapper_8c">
<area shape="rect" id="node11" href="misc_8h_source.html" title="misc.h" alt="" coords="627,83,688,112"/><area shape="rect" id="node13" href="pcscd_8h.html" title="This keeps a list of defines for pcsc&#45;lite." alt="" coords="555,237,621,267"/><area shape="rect" id="node15" href="debuglog_8h.html" title="This handles debugging." alt="" coords="712,83,797,112"/><area shape="rect" id="node17" href="readerfactory_8h.html" title="This keeps track of a list of currently available reader structures." alt="" coords="272,160,381,189"/><area shape="rect" id="node35" href="ifdwrapper_8h.html" title="This wraps the dynamic ifdhandler functions." alt="" coords="821,83,915,112"/><area shape="rect" id="node37" href="atrhandler_8h.html" title="This keeps track of smartcard protocols, timing issues and Answer to Reset ATR handling." alt="" coords="939,83,1029,112"/><area shape="rect" id="node39" href="dyn__generic_8h.html" title="This abstracts dynamic library loading functions." alt="" coords="1053,83,1155,112"/><area shape="rect" id="node41" href="sys__generic_8h.html" title="This handles abstract system level calls." alt="" coords="1179,83,1280,112"/><area shape="rect" id="node47" href="utils_8h_source.html" title="utils.h" alt="" coords="131,83,187,112"/><area shape="rect" id="node22" href="ifdhandler_8h.html" title="ifdhandler.h" alt="" coords="443,237,531,267"/><area shape="rect" id="node29" href="simclist_8h_source.html" title="simclist.h" alt="" coords="291,237,368,267"/><area shape="rect" id="node24" href="pcsclite_8h.html" title="This keeps a list of defines for pcsc&#45;lite." alt="" coords="433,315,511,344"/><area shape="rect" id="node26" href="wintypes_8h.html" title="This keeps a list of Windows(R) types." alt="" coords="245,392,331,421"/></map>
</div>
</div>
<p><a href="ifdwrapper_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#ad794bea544918757cd2fbbae218fa458">IFDSetPTS</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, DWORD dwProtocol, UCHAR ucFlags, UCHAR ucPTS1, UCHAR ucPTS2, UCHAR ucPTS3)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the protocol type selection (PTS).  <a href="#ad794bea544918757cd2fbbae218fa458"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef3b5dc4b2d783af6edcc09a0102471c"></a><!-- doxytag: member="ifdwrapper.c::IFDOpenIFD" ref="aef3b5dc4b2d783af6edcc09a0102471c" args="(READER_CONTEXT *rContext)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#aef3b5dc4b2d783af6edcc09a0102471c">IFDOpenIFD</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Open a communication channel to the IFD. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aedc5eca2b5c9409bc3577763ca98cc18"></a><!-- doxytag: member="ifdwrapper.c::IFDCloseIFD" ref="aedc5eca2b5c9409bc3577763ca98cc18" args="(READER_CONTEXT *rContext)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#aedc5eca2b5c9409bc3577763ca98cc18">IFDCloseIFD</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Close a communication channel to the IFD. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8cdbfd360837b39967cec4c75834250c"></a><!-- doxytag: member="ifdwrapper.c::IFDSetCapabilities" ref="a8cdbfd360837b39967cec4c75834250c" args="(READER_CONTEXT *rContext, DWORD dwTag, DWORD dwLength, PUCHAR pucValue)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#a8cdbfd360837b39967cec4c75834250c">IFDSetCapabilities</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, DWORD dwTag, DWORD dwLength, PUCHAR pucValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set capabilities in the reader. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#af9ec3bb9c077c400c6c0bc4b4e19155f">IFDGetCapabilities</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, DWORD dwTag, PDWORD pdwLength, PUCHAR pucValue)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get's capabilities in the reader.  <a href="#af9ec3bb9c077c400c6c0bc4b4e19155f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5a891c2a91b2cce4f950fe6d466ea9a2"></a><!-- doxytag: member="ifdwrapper.c::IFDPowerICC" ref="a5a891c2a91b2cce4f950fe6d466ea9a2" args="(READER_CONTEXT *rContext, DWORD dwAction, PUCHAR pucAtr, PDWORD pdwAtrLen)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#a5a891c2a91b2cce4f950fe6d466ea9a2">IFDPowerICC</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, DWORD dwAction, PUCHAR pucAtr, PDWORD pdwAtrLen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Power up/down or reset's an ICC located in the IFD. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53f77b110a7765f683e0629aad54772e"></a><!-- doxytag: member="ifdwrapper.c::IFDStatusICC" ref="a53f77b110a7765f683e0629aad54772e" args="(READER_CONTEXT *rContext, PDWORD pdwStatus)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#a53f77b110a7765f683e0629aad54772e">IFDStatusICC</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, PDWORD pdwStatus)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide statistical information about the IFD and ICC including insertions, atr, powering status/etc. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abe51773189cda64320fc0b203b0da310"></a><!-- doxytag: member="ifdwrapper.c::IFDControl_v2" ref="abe51773189cda64320fc0b203b0da310" args="(READER_CONTEXT *rContext, PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, PDWORD RxLength)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><b>IFDControl_v2</b> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, PUCHAR TxBuffer, DWORD TxLength, PUCHAR RxBuffer, PDWORD RxLength)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a32c91bea8a53ae2b53f8ae821294c5"></a><!-- doxytag: member="ifdwrapper.c::IFDControl" ref="a3a32c91bea8a53ae2b53f8ae821294c5" args="(READER_CONTEXT *rContext, DWORD ControlCode, LPCVOID TxBuffer, DWORD TxLength, LPVOID RxBuffer, DWORD RxLength, LPDWORD BytesReturned)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#a3a32c91bea8a53ae2b53f8ae821294c5">IFDControl</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, DWORD ControlCode, LPCVOID TxBuffer, DWORD TxLength, LPVOID RxBuffer, DWORD RxLength, LPDWORD BytesReturned)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provide a means for toggling a specific action on the reader such as swallow, eject, biometric. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c09051f18604f829349702ed226257e"></a><!-- doxytag: member="ifdwrapper.c::IFDTransmit" ref="a5c09051f18604f829349702ed226257e" args="(READER_CONTEXT *rContext, SCARD_IO_HEADER pioTxPci, PUCHAR pucTxBuffer, DWORD dwTxLength, PUCHAR pucRxBuffer, PDWORD pdwRxLength, PSCARD_IO_HEADER pioRxPci)" -->
LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ifdwrapper_8c.html#a5c09051f18604f829349702ed226257e">IFDTransmit</a> (<a class="el" href="structReaderContext.html">READER_CONTEXT</a> *rContext, <a class="el" href="struct__SCARD__IO__HEADER.html">SCARD_IO_HEADER</a> pioTxPci, PUCHAR pucTxBuffer, DWORD dwTxLength, PUCHAR pucRxBuffer, PDWORD pdwRxLength, <a class="el" href="struct__SCARD__IO__HEADER.html">PSCARD_IO_HEADER</a> pioRxPci)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmit an APDU to the ICC. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This wraps the dynamic ifdhandler functions. </p>

<p>Definition in file <a class="el" href="ifdwrapper_8c_source.html">ifdwrapper.c</a>.</p>
</div><hr/><h2>Function Documentation</h2>
<a class="anchor" id="af9ec3bb9c077c400c6c0bc4b4e19155f"></a><!-- doxytag: member="ifdwrapper.c::IFDGetCapabilities" ref="af9ec3bb9c077c400c6c0bc4b4e19155f" args="(READER_CONTEXT *rContext, DWORD dwTag, PDWORD pdwLength, PUCHAR pucValue)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG IFDGetCapabilities </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structReaderContext.html">READER_CONTEXT</a> *&#160;</td>
          <td class="paramname"><em>rContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DWORD&#160;</td>
          <td class="paramname"><em>dwTag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PDWORD&#160;</td>
          <td class="paramname"><em>pdwLength</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">PUCHAR&#160;</td>
          <td class="paramname"><em>pucValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get's capabilities in the reader. </p>
<p>Other functions int this file will call the driver directly to not cause a deadlock. </p>

<p>Definition at line <a class="el" href="ifdwrapper_8c_source.html#l00217">217</a> of file <a class="el" href="ifdwrapper_8c_source.html">ifdwrapper.c</a>.</p>

<p>References <a class="el" href="ifdhandler_8h_source.html#l00328">IFD_SUCCESS</a>, <a class="el" href="group__IFDHandler.html#ga799aa26945bbd3f61aaa57107f63ae0b">IFDHGetCapabilities()</a>, <a class="el" href="readerfactory_8h_source.html#l00091">ReaderContext::mMutex</a>, <a class="el" href="structReaderContext.html#a627d54efaa512c2d1cc5d43367ee9420">ReaderContext::psFunctions</a>, <a class="el" href="readerfactory_8h_source.html#l00097">ReaderContext::psFunctions_v2</a>, and <a class="el" href="readerfactory_8h_source.html#l00104">ReaderContext::slot</a>.</p>

<p>Referenced by <a class="el" href="winscard_8c_source.html#l00770">SCardDisconnect()</a>, and <a class="el" href="winscard_8c_source.html#l01317">SCardGetAttrib()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ifdwrapper_8c_af9ec3bb9c077c400c6c0bc4b4e19155f_cgraph.png" border="0" usemap="#ifdwrapper_8c_af9ec3bb9c077c400c6c0bc4b4e19155f_cgraph" alt=""/></div>
<map name="ifdwrapper_8c_af9ec3bb9c077c400c6c0bc4b4e19155f_cgraph" id="ifdwrapper_8c_af9ec3bb9c077c400c6c0bc4b4e19155f_cgraph">
<area shape="rect" id="node3" href="group__IFDHandler.html#ga799aa26945bbd3f61aaa57107f63ae0b" title="This function should get the slot/card capabilities for a particular slot/card specified by Lun..." alt="" coords="188,5,329,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ad794bea544918757cd2fbbae218fa458"></a><!-- doxytag: member="ifdwrapper.c::IFDSetPTS" ref="ad794bea544918757cd2fbbae218fa458" args="(READER_CONTEXT *rContext, DWORD dwProtocol, UCHAR ucFlags, UCHAR ucPTS1, UCHAR ucPTS2, UCHAR ucPTS3)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG IFDSetPTS </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structReaderContext.html">READER_CONTEXT</a> *&#160;</td>
          <td class="paramname"><em>rContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DWORD&#160;</td>
          <td class="paramname"><em>dwProtocol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UCHAR&#160;</td>
          <td class="paramname"><em>ucFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UCHAR&#160;</td>
          <td class="paramname"><em>ucPTS1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UCHAR&#160;</td>
          <td class="paramname"><em>ucPTS2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">UCHAR&#160;</td>
          <td class="paramname"><em>ucPTS3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the protocol type selection (PTS). </p>
<p>This function sets the appropriate protocol to be used on the card. </p>

<p>Definition at line <a class="el" href="ifdwrapper_8c_source.html#l00046">46</a> of file <a class="el" href="ifdwrapper_8c_source.html">ifdwrapper.c</a>.</p>

<p>References <a class="el" href="ifdhandler_8h_source.html#l00328">IFD_SUCCESS</a>, <a class="el" href="group__IFDHandler.html#gaa6fc195cb450a147550f4671492257ad">IFDHSetProtocolParameters()</a>, <a class="el" href="structReaderContext.html#a627d54efaa512c2d1cc5d43367ee9420">ReaderContext::psFunctions</a>, <a class="el" href="readerfactory_8h_source.html#l00097">ReaderContext::psFunctions_v2</a>, <a class="el" href="pcsclite_8h_source.html#l00112">SCARD_E_UNSUPPORTED_FEATURE</a>, and <a class="el" href="readerfactory_8h_source.html#l00104">ReaderContext::slot</a>.</p>

<p>Referenced by <a class="el" href="prothandler_8c_source.html#l00079">PHSetProtocol()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="ifdwrapper_8c_ad794bea544918757cd2fbbae218fa458_cgraph.png" border="0" usemap="#ifdwrapper_8c_ad794bea544918757cd2fbbae218fa458_cgraph" alt=""/></div>
<map name="ifdwrapper_8c_ad794bea544918757cd2fbbae218fa458_cgraph" id="ifdwrapper_8c_ad794bea544918757cd2fbbae218fa458_cgraph">
<area shape="rect" id="node3" href="group__IFDHandler.html#gaa6fc195cb450a147550f4671492257ad" title="This function should set the Protocol Type Selection (PTS) of a particular card/slot using the three ..." alt="" coords="144,5,333,35"/></map>
</div>
</p>

</div>
</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>