[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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user