]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[interface] Allow for the definition of an unused interface operation
authorMichael Brown <mcb30@ipxe.org>
Fri, 16 Oct 2020 13:59:36 +0000 (14:59 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 16 Oct 2020 14:16:00 +0000 (15:16 +0100)
commitc504c1d6937a07b038ad21646eaec51f34684736
tree7540c7f46666454ed66c7ad48480648623d10610
parent49fd66a8c9d94b7d66656ea5d844278109ee2eef
[interface] Allow for the definition of an unused interface operation

Allow an interface operation to be declared as unused.  This will
perform full type-checking and compilation of the implementing method,
without including any code in the resulting object (other than a NULL
entry in the interface operations table).

The intention is to provide a relatively clean way for interface
operation methods to be omitted in builds for which the operation is
not required (such as an operation to describe an object using an EFI
device path, which would not be required in a non-EFI build).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/interface.h