From: merlokk Date: Tue, 31 Oct 2017 14:25:42 +0000 (+0200) Subject: move strucrture to .h file X-Git-Tag: v3.1.0~133^2~16 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/a23f000182dfde6f2b429c15ff8a7cff87c8a40f?hp=6fc6cd0f57c9f036e3d1e976607df87dbb0214b2 move strucrture to .h file --- 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);