-
Notifications
You must be signed in to change notification settings - Fork 1
Add handle_protocol_mut #19
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
base: master
Are you sure you want to change the base?
Conversation
This is immediately useful for checking partition types/GUIDs for block and disk I/O, but is also useful elsewhere.
Some function calls require image handles in place of the LoadedImageProtocol struct, so track it for library consumers that may want to use it.
Some applications want to set or read load_options (and the corresponding size field).
Implement handle_protocol_mut, and stop using mem::transmute in handle_protocol.
Would it make sense to implement |
I don't believe so; typically Rust APIs that expose both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last two commits LGTM as is.
Some applications may need to acquire a mutable protocol from
handle_protocol
.Note: includes commits also in #18