libcacard: move atr setting from macro to function

Only because qemu's checkpatch complains about it.

Signed-off-by: Alon Levy <alevy@redhat.com>
Reviewed-by: Marc-André Lureau <mlureau@redhat.com>
This commit is contained in:
Alon Levy 2013-03-05 16:27:43 +02:00
parent 7a68589624
commit 0b6a16c1a4
5 changed files with 58 additions and 16 deletions

View file

@ -25,19 +25,6 @@ typedef struct VCardEmulStruct VCardEmul;
#define MAX_CHANNEL 4
/* create an ATR with appropriate historical bytes */
#define TS_DIRECT_CONVENTION 0x3b
#define TA_PRESENT 0x10
#define TB_PRESENT 0x20
#define TC_PRESENT 0x40
#define TD_PRESENT 0x80
#define VCARD_ATR_PREFIX(size) \
TS_DIRECT_CONVENTION, \
TD_PRESENT + (6 + size), \
0x00, \
'V', 'C', 'A', 'R', 'D', '_'
typedef enum {
VCARD_DONE,
VCARD_NEXT,