Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Unified Diff: parse.h

Issue 6677007: Expose and augment parser enum and field name tables to bct_dump. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cbootimage.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« bct_dump.c ('K') | « bct_dump.c ('k') | parse.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: parse.h
diff --git a/parse.h b/parse.h
index e4ec1e51f20dd559a301998291c1e4764e54d892..fdc2339f8d35582ae8ee9c7b3c1f476ff1a85f9c 100644
--- a/parse.h
+++ b/parse.h
@@ -202,6 +202,7 @@ typedef struct
{
char *name;
u_int32_t token;
+ u_int32_t enum_value;
field_type type;
enum_item *enum_table;
} field_item;
@@ -222,6 +223,19 @@ typedef struct
} parse_item;
/*
+ * Provide access to enum and field tables. These tables are useful when
+ * pretty printing a BCT file using bct_dump.
+ */
+extern enum_item s_devtype_table[];
+extern enum_item s_sdmmc_data_width_table[];
+extern enum_item s_spi_clock_source_table[];
+extern enum_item s_nvboot_memory_type_table[];
+extern field_item s_sdram_field_table[];
+extern field_item s_nand_table[];
+extern field_item s_sdmmc_table[];
+extern field_item s_spiflash_table[];
+
+/*
* Function prototypes
*/
void process_config_file(build_image_context *context);
« bct_dump.c ('K') | « bct_dump.c ('k') | parse.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698