Comments (5)
Sure I don't mind.
Any objections regarding the name, @fenollp, @bkirwi ?
from libremarkable.
from libremarkable.
Feel free to reach out in the issues.
https://github.com/liamdiprose/libremarkable-c
from libremarkable.
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.
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)
- Linking Error HOT 13
- Is it possible to avoid clearing the screen when starting an app ? HOT 3
- evdev type mismatch HOT 4
- Install and Use on Apple Silicon HOT 9
- Question: How to clear a region after calling remove_element? HOT 4
- doesn't work with timower's rm2fb HOT 5
- Adding an orientation option? HOT 4
- More intuitive color use for the draw_text function HOT 1
- Unsoundness in ApplicationContext upgrade_ref HOT 3
- Compilation Error with EvDev (Mismatch types) HOT 1
- Crashes on RM2 with Eraser
- Obtaining the toolchain as per the README HOT 4
- Avoid needing LD_PRELOAD on reMarkable 2 HOT 2
- remarkable.engineering Links Redirecting to remarkable.com Home Page HOT 5
- OS X Setup Bounty HOT 2
- 0.5.0 release HOT 4
- Make Lua optional HOT 4
- Built-in rm2fb client corrupts the server state HOT 3
- Buffer overread in swtfb client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libremarkable.