diff options
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 c75fa0028..9575bf69c 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 |
