uefi-rs
uefi-rs copied to clipboard
How to implement the service binding protocols
I would like to implement some of the missing network protocols. For each of them a service binding protocol with a different guid exist, what would be the correct way of implementing the service binding protocols in a way they work with open_protocol?
The obvious way would be to create a struct for every guid but that would cause a lot of duplicates.
Maybe we could have a macro for creating these structs, like service_binding_protocol!(name-of-struct, guid)
This will just hide the duplicates but would be easy to use and requires no further changes, i will try and implement it that way.