Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement the service binding protocols #759

Open
MiSimon opened this issue Apr 11, 2023 · 2 comments
Open

How to implement the service binding protocols #759

MiSimon opened this issue Apr 11, 2023 · 2 comments

Comments

@MiSimon
Copy link

MiSimon commented Apr 11, 2023

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.

@nicholasbishop
Copy link
Member

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

@MiSimon
Copy link
Author

MiSimon commented Apr 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants