From 7dcd37fc2e4b0deeda46c22b1604b1e089dff43e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 21 Jan 2017 11:29:16 +0100 Subject: [PATCH] chg: moved to header file --- armsrc/emvdataels.c | 7 ++++--- armsrc/emvdataels.h | 6 ++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/armsrc/emvdataels.c b/armsrc/emvdataels.c index 9958a27f..3db9ee78 100644 --- a/armsrc/emvdataels.c +++ b/armsrc/emvdataels.c @@ -1,5 +1,7 @@ +// ICEMAN 2017, this file looks similar to emvdataels.h headerfile. + //Data elements for EMV transactions. -#include + #ifndef __EMVDATAELS_H #define __EMVDATAELS_H #include "emvdataels.h" @@ -8,7 +10,7 @@ typedef struct{ uint8_t tag[2]; char description[255]; -}tagdescription; +} tagdescription; const uint8_t AID_VISA[] = {0xa0,0x00,0x00,0x00,0x03}; const uint8_t AID_VISA_DB[] = {0xa0,0x00,0x00,0x00,0x03,0x10,0x10}; @@ -123,5 +125,4 @@ const tagdescription EMV_TAG_LIST[] = { //human readable error messages - #endif //__EMVDATAELS_H diff --git a/armsrc/emvdataels.h b/armsrc/emvdataels.h index 6f3b6fde..d88b8797 100644 --- a/armsrc/emvdataels.h +++ b/armsrc/emvdataels.h @@ -1,7 +1,9 @@ //Data elements for EMV transactions. -#include #ifndef __EMVDATAELS_H #define __EMVDATAELS_H + +#include + //Known AIDs extern const uint8_t AID_VISA[5]; extern const uint8_t AID_VISA_DB[7] ; @@ -27,7 +29,7 @@ extern const uint8_t DF_PSE[]; typedef struct{ uint8_t tag[2]; char description[255]; -}tagdescription; +} tagdescription; extern const tagdescription EMV_TAG_LIST[62]; //SW1 return values extern const uint8_t SW1_RESPONSE_BYTES[]; -- 2.39.5