mirror of
https://github.com/ipxe/ipxe
synced 2025-12-28 18:42:53 +03:00
Add XFER_INIT() macro.
This commit is contained in:
@@ -183,6 +183,19 @@ static inline void xfer_init ( struct xfer_interface *xfer,
|
||||
xfer->op = op;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user