Git Product home page Git Product logo

Comments (5)

EnderKill98 avatar EnderKill98 commented on June 30, 2024 2

Sure I don't mind.

Any objections regarding the name, @fenollp, @bkirwi ?

from libremarkable.

bkirwi avatar bkirwi commented on June 30, 2024 1

from libremarkable.

liamdiprose avatar liamdiprose commented on June 30, 2024 1

Feel free to reach out in the issues.

https://github.com/liamdiprose/libremarkable-c

from libremarkable.

LinusCDE avatar LinusCDE commented on June 30, 2024

I don't think there is any interest currently.

It should be pretty doable though. I see two ways for that

Approach 1: Wrapper Rust Lib that exports wrapped functions to C

However it should not be too hard to make a wrapper project that simply exposes things as C functions. Depending on what functionality is needed it should be easy enough to do, however to cover most of the features would probably mean a lot of porting and wrapping types etc.

Here is a good primer that explains how a rust project can export C functions and build a shared object file: https://docs.rust-embedded.org/book/interoperability/rust-with-c.html

I can draft a minimal project that can do that, but I don't have the capacity to make a C Lib that cover a substantial area of the functionality of this rust lib.

There also seems to be a lib that will then automate generating proper header files (the reverse of bindgen): https://github.com/mozilla/cbindgen

Approach 2: Use the old c implementation

This repo also has a branch that preserves the old c implementation I'm not familiar with it, but I think it was the initial project of the lib. There are likely a lot of features missing, but together with remarkable2-framebuffer I'd assume that you could use that to get the core functionality running with that.

Maybe this approach might be the fastest to get going.

from libremarkable.

liamdiprose avatar liamdiprose commented on June 30, 2024

Hi @LinusCDE,

Thanks for your detailed reply. I'm thinking of using Approach 1. For some reason I thought the work could only be done in this repository. I'm happy to start the repository if you don't. What do you think of "libremarkable-c"?

from libremarkable.

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.