Skip to content

Adding wrappers for high-level programming #32

Open

Description

@JaniruTEC

Hello, just my first time diving into Dokany and dokan-java.
Looking at the API I noticed that many classes like DokanyFileSystemStub are closer to "C-Code" than to default Java OOP-Approached classes. They only return ints and handle returns via callbacks or use WString as parameters.

Are there plans to include a more OOP/Java-like API? Is this something I could contribute?

Activity

  1. infeo commented on Apr 23, 2020

    @infeo
    Collaborator

    Well, since this library is first and foremost a wrapper for dokany, it is no wonder that it resembles c code.

    Of course a more Java-like approach is desirable, but difficult to realize. In the end the developer needs to implement the dokany api, which expects status codes as return values and gives you pointers and bit masks as parameters.

    But i'm open for suggestions (:

  2. JaniruTEC commented on Apr 25, 2020

    @JaniruTEC
    CollaboratorAuthor

    I've been working on a java-like-approach for some time now.
    If you were to add a second layer, the library could handle translation from bitmasks into EnumIntegerSets and could translate pointers to/from wrapper classes (e.g. I created a class "DiskSpaceInfo" to wrap the space parameters for getDiskFreeSpace)

    Also my approach to status codes would have been to throw exceptions which are handled and translated by the second layer.

    Is there a way to contact you outside of GitHub, as I have trouble getting my test environment for the current snapshot version set up and got a couple more questions.

  3. added this to the 2.0 milestone on May 21, 2020
  4. linked a pull request that will close this issueImplementing the "Easy"-Dokan-API #35on Jun 2, 2020
  5. self-assigned this
    on Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions