programmer_table: add table size constant
Makes the array size known to other compilation units.
Change-Id: Idacb4b7b0dd98af8bc7cbecf567d33daafb4b24d
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/55116
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Original-Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
diff --git a/programmer.h b/programmer.h
index 1a7b720..ad48582 100644
--- a/programmer.h
+++ b/programmer.h
@@ -161,6 +161,7 @@
};
extern const struct programmer_entry programmer_table[];
+extern const size_t programmer_table_size;
int programmer_init(enum programmer prog, const char *param);
int programmer_shutdown(void);