pcsc-lite  1.8.3
pcscd.h
Go to the documentation of this file.
1 /*
2  * MUSCLE SmartCard Development ( http://www.linuxnet.com )
3  *
4  * Copyright (C) 2006-2011
5  * Ludovic Rousseau <ludovic.rousseau@free.fr>
6  *
7  * $Id: pcscd.h.in 6071 2011-10-24 11:51:08Z rousseau $
8  */
9 
15 #ifndef __pcscd_h__
16 #define __pcscd_h__
17 
18 #define TIME_BEFORE_SUICIDE 60
19 
20 #define SCARD_SCOPE_GLOBAL 0x0003
22 #define SCARD_RESET 0x0001
23 #define SCARD_INSERTED 0x0002
24 #define SCARD_REMOVED 0x0004
26 #define PCSCLITE_CONFIG_DIR "/etc/reader.conf.d"
27 
28 #define PCSCLITE_IPC_DIR USE_IPCDIR
29 #define PCSCLITE_RUN_PID PCSCLITE_IPC_DIR "/pcscd.pid"
30 
31 #define PCSCLITE_CSOCK_NAME PCSCLITE_IPC_DIR "/pcscd.comm"
32 
33 #define PCSCLITE_SVC_IDENTITY 0x01030000
35 #define PCSCLITE_VERSION_NUMBER "1.8.3"
36 #define PCSCLITE_STATUS_POLL_RATE 400000
37 #define PCSCLITE_LOCK_POLL_RATE 100000
39 #define PCSC_MAX_CONTEXT_THREADS 200
40 #define PCSC_MAX_CONTEXT_CARD_HANDLES 200
41 #define PCSC_MAX_READER_HANDLES 200
42 
43 #define PCSCLITE_STATUS_WAIT 200000
44 #define MAX_DEVICENAME 255
45 
47 enum
48 {
53 };
54 
56 #define PCSCLITE_POWER_OFF_GRACE_PERIOD 5*1000 /* 5 second */
57 
60 #define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 /* 10 minutes */
61 
62 /* Uncomment the next line if you do NOT want to use auto power off */
63 /* #define DISABLE_ON_DEMAND_POWER_ON */
64 
65 /* Uncomment the next line if you do not want the card to be powered on
66  * when inserted */
67 /* #define DISABLE_AUTO_POWER_ON */
68 
69 #endif