Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1d49b8f9ae104bfd1869bc35e6bbf50d > files > 156

pcsc-lite-doc-1.7.2-1.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: pcscd.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">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="headertitle">
<h1>pcscd.h</h1>  </div>
</div>
<div class="contents">
<a href="pcscd_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * MUSCLE SmartCard Development ( http://www.linuxnet.com )</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2006-2009</span>
<a name="l00005"></a>00005 <span class="comment"> *  Ludovic Rousseau &lt;ludovic.rousseau@free.fr&gt;</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * $Id$</span>
<a name="l00008"></a>00008 <span class="comment"> */</span>
<a name="l00009"></a>00009 
<a name="l00015"></a>00015 <span class="preprocessor">#ifndef __pcscd_h__</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#define __pcscd_h__</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span>
<a name="l00018"></a>00018 <span class="preprocessor">#define TIME_BEFORE_SUICIDE 60</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a><a class="code" href="pcscd_8h.html#a44e87b3c0cca8a029dd654f0432f34e8">00020</a> <span class="preprocessor">#define SCARD_SCOPE_GLOBAL      0x0003  </span>
<a name="l00022"></a><a class="code" href="pcscd_8h.html#aaa33efde4fadc5d23196805e49c19fa1">00022</a> <span class="preprocessor">#define SCARD_RESET         0x0001  </span>
<a name="l00023"></a><a class="code" href="pcscd_8h.html#ab8ec202d508f1aba98abdb7adde525b0">00023</a> <span class="preprocessor">#define SCARD_INSERTED          0x0002  </span>
<a name="l00024"></a><a class="code" href="pcscd_8h.html#ac3addaa035656d9240290695e46d2b87">00024</a> <span class="preprocessor">#define SCARD_REMOVED           0x0004  </span>
<a name="l00026"></a>00026 <span class="preprocessor">#define PCSCLITE_CONFIG_DIR     &quot;/etc/reader.conf.d&quot;</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#define PCSCLITE_IPC_DIR        USE_IPCDIR</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define PCSCLITE_RUN_PID        PCSCLITE_IPC_DIR &quot;/pcscd.pid&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#define PCSCLITE_CSOCK_NAME     PCSCLITE_IPC_DIR &quot;/pcscd.comm&quot;</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="pcscd_8h.html#abeca863a7ce3e9748463602c964eadbf">00033</a> <span class="preprocessor">#define PCSCLITE_SVC_IDENTITY       0x01030000  </span>
<a name="l00035"></a><a class="code" href="pcscd_8h.html#ad560794e3234b0037793846f04e3b07d">00035</a> <span class="preprocessor">#define PCSCLITE_VERSION_NUMBER     &quot;1.7.2&quot; </span>
<a name="l00036"></a><a class="code" href="pcscd_8h.html#a3a41215bb0b34269bc221fad8470262b">00036</a> <span class="preprocessor">#define PCSCLITE_STATUS_POLL_RATE   400000      </span>
<a name="l00037"></a><a class="code" href="pcscd_8h.html#ac9c6d92f56e8c08459b19c0d4d85639f">00037</a> <span class="preprocessor">#define PCSCLITE_LOCK_POLL_RATE     100000      </span>
<a name="l00039"></a>00039 <span class="preprocessor">#define PCSC_MAX_CONTEXT_THREADS 200</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define PCSC_MAX_CONTEXT_CARD_HANDLES 200</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define PCSC_MAX_READER_HANDLES 200</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span>
<a name="l00043"></a><a class="code" href="pcscd_8h.html#abbd369d24ef81edf6fc0b336691f1c4e">00043</a> <span class="preprocessor">#define PCSCLITE_STATUS_WAIT        200000  </span>
<a name="l00044"></a>00044 <span class="preprocessor">#define MAX_DEVICENAME      255</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a><a class="code" href="pcscd_8h.html#ad4d796b98c583d49e83adabd74a63bf6">00046</a> <span class="preprocessor">#define MAX_BUFFER_SIZE         264 </span>
<a name="l00047"></a><a class="code" href="pcscd_8h.html#ae128d4b6df34e2dfdb6216b31bae2cc6">00047</a> <span class="preprocessor">#define MAX_BUFFER_SIZE_EXTENDED    (4 + 3 + (1&lt;&lt;16) + 3)   </span>
<a name="l00050"></a>00050 <span class="preprocessor">enum</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span>{
<a name="l00052"></a><a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06ca364e061ee6f8ca8f305b09118078c0f4">00052</a>     <a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06ca364e061ee6f8ca8f305b09118078c0f4" title="auto power off">POWER_STATE_UNPOWERED</a>,  
<a name="l00053"></a><a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06ca7be8439cb9f5abff2a92f7949e52aa4a">00053</a>     <a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06ca7be8439cb9f5abff2a92f7949e52aa4a" title="powered">POWER_STATE_POWERED</a>,    
<a name="l00054"></a><a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06caf024e22b873abf167c350828a94c6858">00054</a>     <a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06caf024e22b873abf167c350828a94c6858" title="card was in use">POWER_STATE_GRACE_PERIOD</a>,   
<a name="l00055"></a><a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06caf86b00f141f48d3f5497c03a16108973">00055</a>     <a class="code" href="pcscd_8h.html#adc29c2ff13d900c2f185ee95427fb06caf86b00f141f48d3f5497c03a16108973" title="card is used">POWER_STATE_INUSE</a>       
<a name="l00056"></a>00056 };
<a name="l00057"></a>00057 
<a name="l00059"></a><a class="code" href="pcscd_8h.html#a470bcb4ab0dad6b913bd9e8772b21715">00059</a> <span class="preprocessor">#define PCSCLITE_POWER_OFF_GRACE_PERIOD 5*1000 </span><span class="comment">/* 5 second */</span>
<a name="l00060"></a>00060 
<a name="l00063"></a><a class="code" href="pcscd_8h.html#a21483070e9bf58f30b6e646c245dde48">00063</a> <span class="preprocessor">#define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 </span><span class="comment">/* 10 minutes */</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/* Uncomment the next line if you do NOT want to use auto power off */</span>
<a name="l00066"></a>00066 <span class="comment">/* #define DISABLE_ON_DEMAND_POWER_ON */</span>
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="comment">/* Uncomment the next line if you do not want the card to be powered on</span>
<a name="l00069"></a>00069 <span class="comment"> * when inserted */</span>
<a name="l00070"></a>00070 <span class="comment">/* #define DISABLE_AUTO_POWER_ON */</span>
<a name="l00071"></a>00071 
<a name="l00072"></a>00072 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Thu Mar 31 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.3 </small></address>
</body>
</html>