From 1ddf269c699c4028d4f5ae580b22cad0dd62d274 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 23 Jun 2012 13:02:52 +0200 Subject: Prepair piece structure for device & hw revisions --- src/main.h | 4 +++- src/pieces.c | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main.h b/src/main.h index 2b94d7b..4f78cdb 100644 --- a/src/main.h +++ b/src/main.h @@ -59,7 +59,9 @@ extern int verbose; struct piece_t { char *name; char *type; - char *vers; + char *device; + char *hwrevs; + char *version; }; enum flash_mode { diff --git a/src/pieces.c b/src/pieces.c index 16cacce..5f850d2 100644 --- a/src/pieces.c +++ b/src/pieces.c @@ -52,7 +52,9 @@ int add_piece(char *piece) pcs[pcs_n].name = strdup(file); pcs[pcs_n].type = strdup(piece); - pcs[pcs_n].vers = NULL; // TODO version string not yet supported + pcs[pcs_n].device = NULL; + pcs[pcs_n].hwrevs = NULL; + pcs[pcs_n].version = NULL; // TODO version string not yet supported } else { /*/ autodetect piece type */ pcs[pcs_n].type = (char *)fpid_file(piece); @@ -66,7 +68,9 @@ int add_piece(char *piece) } else { pcs[pcs_n].name = strdup(piece); pcs[pcs_n].type = strdup(pcs[pcs_n].type); - pcs[pcs_n].vers = NULL; + pcs[pcs_n].device = NULL; + pcs[pcs_n].hwrevs = NULL; + pcs[pcs_n].version = NULL; } } -- cgit v1.2.3