mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[interface] Add intf_poke() helper
Reduce the cost of implementing object methods which convey no information beyond the fact that the method has been called. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -145,6 +145,11 @@ extern void intf_close ( struct interface *intf, int rc );
|
||||
extern void intf_shutdown ( struct interface *intf, int rc );
|
||||
extern void intf_restart ( struct interface *intf, int rc );
|
||||
|
||||
extern void intf_poke ( struct interface *intf,
|
||||
void ( type ) ( struct interface *intf ) );
|
||||
#define intf_poke_TYPE( object_type ) \
|
||||
typeof ( void ( object_type ) )
|
||||
|
||||
extern struct interface_descriptor null_intf_desc;
|
||||
extern struct interface null_intf;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user