aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/include/gpxe/init.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpxe/src/include/gpxe/init.h')
-rw-r--r--gpxe/src/include/gpxe/init.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gpxe/src/include/gpxe/init.h b/gpxe/src/include/gpxe/init.h
index e0e9f9c8..a72cba7a 100644
--- a/gpxe/src/include/gpxe/init.h
+++ b/gpxe/src/include/gpxe/init.h
@@ -1,6 +1,8 @@
#ifndef _GPXE_INIT_H
#define _GPXE_INIT_H
+FILE_LICENCE ( GPL2_OR_LATER );
+
#include <gpxe/tables.h>
/**
@@ -13,9 +15,11 @@ struct init_fn {
void ( * initialise ) ( void );
};
+/** Initialisation function table */
+#define INIT_FNS __table ( struct init_fn, "init_fns" )
+
/** Declare an initialisation functon */
-#define __init_fn( init_order ) \
- __table ( struct init_fn, init_fns, init_order )
+#define __init_fn( init_order ) __table_entry ( INIT_FNS, init_order )
/** @defgroup initfn_order Initialisation function ordering
* @{
@@ -49,9 +53,12 @@ struct startup_fn {
void ( * shutdown ) ( int flags );
};
+/** Startup/shutdown function table */
+#define STARTUP_FNS __table ( struct startup_fn, "startup_fns" )
+
/** Declare a startup/shutdown function */
#define __startup_fn( startup_order ) \
- __table ( struct startup_fn, startup_fns, startup_order )
+ __table_entry ( STARTUP_FNS, startup_order )
/** @defgroup startfn_order Startup/shutdown function ordering
*