pcsc-lite
1.8.3
|
00001 /* 00002 * MUSCLE SmartCard Development ( http://www.linuxnet.com ) 00003 * 00004 * Copyright (C) 2006-2011 00005 * Ludovic Rousseau <ludovic.rousseau@free.fr> 00006 * 00007 * $Id: pcscd.h.in 6071 2011-10-24 11:51:08Z rousseau $ 00008 */ 00009 00015 #ifndef __pcscd_h__ 00016 #define __pcscd_h__ 00017 00018 #define TIME_BEFORE_SUICIDE 60 00019 00020 #define SCARD_SCOPE_GLOBAL 0x0003 00022 #define SCARD_RESET 0x0001 00023 #define SCARD_INSERTED 0x0002 00024 #define SCARD_REMOVED 0x0004 00026 #define PCSCLITE_CONFIG_DIR "/etc/reader.conf.d" 00027 00028 #define PCSCLITE_IPC_DIR USE_IPCDIR 00029 #define PCSCLITE_RUN_PID PCSCLITE_IPC_DIR "/pcscd.pid" 00030 00031 #define PCSCLITE_CSOCK_NAME PCSCLITE_IPC_DIR "/pcscd.comm" 00032 00033 #define PCSCLITE_SVC_IDENTITY 0x01030000 00035 #define PCSCLITE_VERSION_NUMBER "1.8.3" 00036 #define PCSCLITE_STATUS_POLL_RATE 400000 00037 #define PCSCLITE_LOCK_POLL_RATE 100000 00039 #define PCSC_MAX_CONTEXT_THREADS 200 00040 #define PCSC_MAX_CONTEXT_CARD_HANDLES 200 00041 #define PCSC_MAX_READER_HANDLES 200 00042 00043 #define PCSCLITE_STATUS_WAIT 200000 00044 #define MAX_DEVICENAME 255 00045 00047 enum 00048 { 00049 POWER_STATE_UNPOWERED, 00050 POWER_STATE_POWERED, 00051 POWER_STATE_GRACE_PERIOD, 00052 POWER_STATE_INUSE 00053 }; 00054 00056 #define PCSCLITE_POWER_OFF_GRACE_PERIOD 5*1000 /* 5 second */ 00057 00060 #define PCSCLITE_STATUS_EVENT_TIMEOUT 10*60*1000 /* 10 minutes */ 00061 00062 /* Uncomment the next line if you do NOT want to use auto power off */ 00063 /* #define DISABLE_ON_DEMAND_POWER_ON */ 00064 00065 /* Uncomment the next line if you do not want the card to be powered on 00066 * when inserted */ 00067 /* #define DISABLE_AUTO_POWER_ON */ 00068 00069 #endif