uefi-rs icon indicating copy to clipboard operation
uefi-rs copied to clipboard

How to implement the service binding protocols

Open MiSimon opened this issue 2 years ago • 2 comments

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.

MiSimon avatar Apr 11 '23 13:04 MiSimon

Maybe we could have a macro for creating these structs, like service_binding_protocol!(name-of-struct, guid)

nicholasbishop avatar Apr 12 '23 04:04 nicholasbishop

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.

MiSimon avatar Apr 13 '23 10:04 MiSimon