From a23f000182dfde6f2b429c15ff8a7cff87c8a40f Mon Sep 17 00:00:00 2001 From: merlokk Date: Tue, 31 Oct 2017 16:25:42 +0200 Subject: [PATCH] move strucrture to .h file --- client/cmdhf14a.c | 7 ------- client/cmdhf14a.h | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/client/cmdhf14a.c b/client/cmdhf14a.c index cdaa18cd..f6ed899a 100644 --- a/client/cmdhf14a.c +++ b/client/cmdhf14a.c @@ -14,12 +14,6 @@ static int CmdHelp(const char *Cmd); static int waitCmd(uint8_t iLen); -// structure and database for uid -> tagtype lookups -typedef struct { - uint8_t uid; - char* desc; -} manufactureName; - const manufactureName manufactureMapping[] = { // ID, "Vendor Country" { 0x01, "Motorola UK" }, @@ -93,7 +87,6 @@ const manufactureName manufactureMapping[] = { { 0x00, "no tag-info available" } // must be the last entry }; - // get a product description based on the UID // uid[8] tag uid // returns description of the best match diff --git a/client/cmdhf14a.h b/client/cmdhf14a.h index 0b58a55a..407cf07d 100644 --- a/client/cmdhf14a.h +++ b/client/cmdhf14a.h @@ -31,6 +31,12 @@ #include "cmdhfmfu.h" #include "mifarehost.h" +// structure and database for uid -> tagtype lookups +typedef struct { + uint8_t uid; + char* desc; +} manufactureName; + int CmdHF14A(const char *Cmd); int CmdHF14AList(const char *Cmd); int CmdHF14AMifare(const char *Cmd); -- 2.39.2