Giter VIP home page Giter VIP logo

Comments (5)

DarkMatterCore avatar DarkMatterCore commented on June 10, 2024 1

Sure thing. This will be an ongoing WIP I intend to further explore over the course of the next week.

Changes will surely be pushed to dev, so feel free to take a peek at that branch and/or let me know if you want write access.

from libusbhsfs.

averne avatar averne commented on June 10, 2024 1

Thanks for the quick patch, I'll try to move my app to this system soon and give you feedback.
At a glance, I think the UsbHsFsPopulateCb could take an additional void* parameter, passed by the user in usbHsFsSetPopulateCallback. This way the user can conveniently access any kind of structure (eg. a drive manager object) from the callback.

from libusbhsfs.

averne avatar averne commented on June 10, 2024

Additionally this could be used to enable advanced communication with the user.
For instance, there could be a callback used prior to creating the fs context and mounting to devoptab, where the user could decide on a different mountpoint, if he wants to mount as read-only, maybe even have advanced settings based on the filesystem, ...

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 10, 2024

Just pushed the first changes related to this issue to dev, check 0299eae. A single callback is used at this moment, others may follow down the road.

I tested it a bit with all my flash drives and it seems to work fine.

from libusbhsfs.

DarkMatterCore avatar DarkMatterCore commented on June 10, 2024

@averne Had some time to spare, so I went ahead and implemented support for a user data pointer in 2c401e8. I'll be waiting for your feedback, there's some other stuff I want to tackle in the meantime.

from libusbhsfs.

Related Issues (15)

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.