From 25a0981fbf3e531d4c3b349702ef26edce83c6a4 Mon Sep 17 00:00:00 2001 From: frankmorgner Date: Mon, 30 Aug 2010 19:39:57 +0000 Subject: [PATCH] including reader.h, if possible git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@255 96b47cad-a561-4643-ad3b-153ac7d7599c --- ccid/src/ccid-test.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/ccid/src/ccid-test.c b/ccid/src/ccid-test.c index d675995..8f39818 100644 --- a/ccid/src/ccid-test.c +++ b/ccid/src/ccid-test.c @@ -23,6 +23,17 @@ #include #include +#ifdef HAVE_READER_H +#include +#else +typedef struct +{ + uint8_t tag; + uint8_t length; + uint32_t value; +} PCSC_TLV_STRUCTURE; +#endif + #ifndef FEATURE_EXECUTE_PACE #define FEATURE_EXECUTE_PACE 0x20 #endif @@ -31,15 +42,8 @@ #define CM_IOCTL_GET_FEATURE_REQUEST SCARD_CTL_CODE(3400) #endif -typedef struct -{ - uint8_t tag; - uint8_t length; - uint32_t value; -} PCSC_TLV_STRUCTURE; - - static void +static void printb(unsigned char *buf, size_t len) { size_t i = 0; @@ -54,7 +58,7 @@ printb(unsigned char *buf, size_t len) printf("\n"); } - int +int main(int argc, char *argv[]) { LONG rv;