aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/image.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2009-03-13 00:13:38 +0000
committerMichael Brown <mcb30@etherboot.org>2009-03-13 02:10:21 +0000
commit3c68ff99eaff6e0d615349bdc85ea12ad8345284 (patch)
tree969a335fe8d1685203f7bfe90d07868dcbc1fe34 /src/include/gpxe/image.h
parent1266d7902bf7f2534ee279671d48613ef9b2434c (diff)
downloadipxe-3c68ff99eaff6e0d615349bdc85ea12ad8345284.tar.gz
[tables] Incorporate table data type information into table definition
Eliminate the potential for mismatches between table names and the table entry data type by incorporating the data type into the definition of the table, rather than specifying it explicitly in each table accessor method.
Diffstat (limited to 'src/include/gpxe/image.h')
-rw-r--r--src/include/gpxe/image.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/gpxe/image.h b/src/include/gpxe/image.h
index cb3bb361b..b40474671 100644
--- a/src/include/gpxe/image.h
+++ b/src/include/gpxe/image.h
@@ -124,11 +124,10 @@ struct image_type {
#define PROBE_PXE 03
/** Executable or loadable image type table */
-#define IMAGE_TYPES "image_types"
+#define IMAGE_TYPES __table ( struct image_type, "image_types" )
/** An executable or loadable image type */
-#define __image_type( probe_order ) \
- __table ( struct image_type, IMAGE_TYPES, probe_order )
+#define __image_type( probe_order ) __table_entry ( IMAGE_TYPES, probe_order )
extern struct list_head images;