Giter Club home page Giter Club logo

Comments (2)

nicholasbishop avatar nicholasbishop commented on July 2, 2024

I had to ponder this a bit :) It is possible to do with the current API, and I've put up a PR to demonstrate this in the test-runner: #931

It's not exactly the most intuitive thing though, so I'm open to suggestions on improving this. I expect uninstalling a protocol interface to be relatively uncommon though, so maybe it's OK for it to be a little clunky -- I'm unsure.

from uefi-rs.

scholzp avatar scholzp commented on July 2, 2024

Hi Nicholas, thank you for your response and the example! :)

I think the way you demonstrated this is the way, it should be done when using the crate. I've implemented a handle_protocol wrapper in the meantime and didn't find a way to really integrate it in a useful way into this crate. It would introduces a lot of unsafety in my option when handling protocols, as the handler isn't automatically registered by the UEFI as it would be the case when using open_protocol. So it might be better if there only exists one way of obtaining a interface pointer. I too think, that uninstalling a protocol interface should be a uncommon task and in the seldom cases where it's useful, it's OK to be a bit clunky. But this is just my thoughts about this.

So again, thank you for your answer! :)

from uefi-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.