diff options
author | Michael Brown | 2008-01-22 19:48:47 +0100 |
---|---|---|
committer | Michael Brown | 2008-01-22 19:48:47 +0100 |
commit | a2b4252d5acb9e375b84dfaefa97e891983193b6 (patch) | |
tree | 7d231c9cfc41084d9704df293b9ee5474b2c61bf /src/include | |
parent | Make seek information part of the xfer metadata, rather than an entirely (diff) | |
download | ipxe-a2b4252d5acb9e375b84dfaefa97e891983193b6.tar.gz ipxe-a2b4252d5acb9e375b84dfaefa97e891983193b6.tar.xz ipxe-a2b4252d5acb9e375b84dfaefa97e891983193b6.zip |
Add XFER_INIT() macro.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gpxe/xfer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gpxe/xfer.h b/src/include/gpxe/xfer.h index c75fa002..9575bf69 100644 --- a/src/include/gpxe/xfer.h +++ b/src/include/gpxe/xfer.h @@ -184,6 +184,19 @@ static inline void xfer_init ( struct xfer_interface *xfer, } /** + * Initialise a static data transfer interface + * + * @v operations Data transfer interface operations + */ +#define XFER_INIT( operations ) { \ + .intf = { \ + .dest = &null_xfer.intf, \ + .refcnt = NULL, \ + }, \ + .op = operations, \ + } + +/** * Get data transfer interface from generic object communication interface * * @v intf Generic object communication interface |