summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/init.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gpxe/init.h')
-rw-r--r--src/include/gpxe/init.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/include/gpxe/init.h b/src/include/gpxe/init.h
index e0e9f9c84..9ce56d77f 100644
--- a/src/include/gpxe/init.h
+++ b/src/include/gpxe/init.h
@@ -13,9 +13,12 @@ struct init_fn {
void ( * initialise ) ( void );
};
+/** Initialisation function table */
+#define INIT_FNS "init_fns"
+
/** Declare an initialisation functon */
#define __init_fn( init_order ) \
- __table ( struct init_fn, init_fns, init_order )
+ __table ( struct init_fn, INIT_FNS, init_order )
/** @defgroup initfn_order Initialisation function ordering
* @{
@@ -49,9 +52,12 @@ struct startup_fn {
void ( * shutdown ) ( int flags );
};
+/** Startup/shutdown function table */
+#define STARTUP_FNS "startup_fns"
+
/** Declare a startup/shutdown function */
#define __startup_fn( startup_order ) \
- __table ( struct startup_fn, startup_fns, startup_order )
+ __table ( struct startup_fn, STARTUP_FNS, startup_order )
/** @defgroup startfn_order Startup/shutdown function ordering
*