Allowed zero-cost enforced ordering of features in startup banner

list.

Added FEATURE() macros to most relevant (non-driver) files.
This commit is contained in:
Michael Brown
2007-08-02 14:51:03 +01:00
parent 67afe84292
commit 9fd6a0418f
13 changed files with 80 additions and 40 deletions

View File

@@ -11,6 +11,7 @@
#include <gpxe/xfer.h>
#include <gpxe/open.h>
#include <gpxe/uri.h>
#include <gpxe/features.h>
#include <gpxe/ftp.h>
/** @file
@@ -19,6 +20,8 @@
*
*/
FEATURE ( FEATURE_PROTOCOL, "FTP", DHCP_EB_FEATURE_FTP, 1 );
/**
* FTP states
*

View File

@@ -43,7 +43,7 @@
#include <gpxe/features.h>
#include <gpxe/http.h>
FEATURE ( "HTTP", DHCP_EB_FEATURE_HTTP, 1 );
FEATURE ( FEATURE_PROTOCOL, "HTTP", DHCP_EB_FEATURE_HTTP, 1 );
/** HTTP receive state */
enum http_rx_state {

View File

@@ -29,7 +29,7 @@
#include <gpxe/http.h>
#include <gpxe/features.h>
FEATURE ( "HTTPS", DHCP_EB_FEATURE_HTTPS, 1 );
FEATURE ( FEATURE_PROTOCOL, "HTTPS", DHCP_EB_FEATURE_HTTPS, 1 );
/**
* Initiate an HTTPS connection

View File

@@ -41,7 +41,7 @@
*
*/
FEATURE ( "iSCSI", DHCP_EB_FEATURE_ISCSI, 1 );
FEATURE ( FEATURE_PROTOCOL, "iSCSI", DHCP_EB_FEATURE_ISCSI, 1 );
/** iSCSI initiator name (explicitly specified) */
static char *iscsi_explicit_initiator_iqn;