aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/interface.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2015-07-08 16:24:11 +0100
committerMichael Brown <mcb30@ipxe.org>2015-07-22 21:17:47 +0100
commit81c80c8ba9e7ba053f2571a1945581b70f310b4d (patch)
treeefbdeec11680bf9c13aa5665fe7d298c63254fb5 /src/include/ipxe/interface.h
parent6bc3d994966b00560e07c662b33da0cc9477891f (diff)
downloadipxe-81c80c8ba9e7ba053f2571a1945581b70f310b4d.zip
ipxe-81c80c8ba9e7ba053f2571a1945581b70f310b4d.tar.gz
ipxe-81c80c8ba9e7ba053f2571a1945581b70f310b4d.tar.bz2
[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>
Diffstat (limited to 'src/include/ipxe/interface.h')
-rw-r--r--src/include/ipxe/interface.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/ipxe/interface.h b/src/include/ipxe/interface.h
index efb8374..a8d8237 100644
--- a/src/include/ipxe/interface.h
+++ b/src/include/ipxe/interface.h
@@ -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;