diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-03-13 00:13:38 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-03-13 02:10:21 +0000 |
commit | 3c68ff99eaff6e0d615349bdc85ea12ad8345284 (patch) | |
tree | 969a335fe8d1685203f7bfe90d07868dcbc1fe34 /src/include/gpxe/sanboot.h | |
parent | 1266d7902bf7f2534ee279671d48613ef9b2434c (diff) | |
download | ipxe-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/sanboot.h')
-rw-r--r-- | src/include/gpxe/sanboot.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gpxe/sanboot.h b/src/include/gpxe/sanboot.h index 68fd0b9be..05a3ddf0f 100644 --- a/src/include/gpxe/sanboot.h +++ b/src/include/gpxe/sanboot.h @@ -8,9 +8,9 @@ struct sanboot_protocol { int ( * boot ) ( const char *root_path ); }; -#define SANBOOT_PROTOCOLS "sanboot_protocols" +#define SANBOOT_PROTOCOLS \ + __table ( struct sanboot_protocol, "sanboot_protocols" ) -#define __sanboot_protocol \ - __table ( struct sanboot_protocol, SANBOOT_PROTOCOLS, 01 ) +#define __sanboot_protocol __table_entry ( SANBOOT_PROTOCOLS, 01 ) #endif /* _GPXE_SANBOOT_H */ |