added vpcd-config

This commit is contained in:
Frank Morgner
2014-09-07 03:19:32 +02:00
parent 2f8ff4a29b
commit 9f746a70c8
10 changed files with 222 additions and 4 deletions

View File

@@ -28,8 +28,8 @@
/* pcscd allows at most 16 readers. We will use 10.
* See PCSCLITE_MAX_READERS_CONTEXTS in pcsclite.h */
#define VICC_MAX_SLOTS \
PCSCLITE_MAX_READERS_CONTEXTS > 6 ? \
PCSCLITE_MAX_READERS_CONTEXTS-6 : 1
(PCSCLITE_MAX_READERS_CONTEXTS > 6 ? \
PCSCLITE_MAX_READERS_CONTEXTS-6 : 1)
const unsigned char vicc_max_slots = VICC_MAX_SLOTS;
static struct vicc_ctx *ctx[VICC_MAX_SLOTS];

View File

@@ -23,7 +23,7 @@
extern "C" {
#endif
extern const unsigned char VICC_MAX_SLOTS;
extern const unsigned char vicc_max_slots;
extern const char *hostname;
#ifdef __cplusplus