-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C binding for libdar? #55
Comments
correct, libdar is written in C++ and makes a big use of classes and objects. Though, one could argue that using an object is almost equivalent as adding a first argument (a pointer to the data-structure of the object, which can be an opaque one from API user point of view) to any method the class provides be converted to a C function... If you are willing to set this up, let me know, I can guide you from the starting point (which code/branch to use from git) which part to focus on, up to what automatic/systematic naming could worth considering... Unfortunately, I have not free/personal time left for to do that alone, this is why I cannot add it to my todo list. |
Thank you for the reply! |
Searching Internet, it seems complicated to call C++ routines from rust due to C++ name mangling... it is advised to pass through C, which is probably the reason why you were looking for C API to libdar... The path seems less complicated to reach python code from Rust, though this may not be totally straight forward... but libdar provides a python API as you know... my 2 cents... |
That is fair enough, I did find 2 projects that seem to have C bindings for libdar, but they are very old/incomplete: |
I'm sorry, I'd like to have more time to work on dar/libdar but I still have to pay my bills... and dar/libdar will stay free. So there are priorities and choices to take to match my available free time. C binding is not very demanded and while it does not seems very risky nor very complex to address (well, seen from far away...) it requires an important investment in time... something I have not for now... being busy some free software project... |
I'm not sure I follow, I only stated I found these. |
This was unclear on my side what to do with these projects. Thanks for this feedback and no worries at all! |
I've been eying this project for some time and been wanting to use it in Rust/Dart, unfortunately there's no C binding to more easily dig your teeth into.
I noticed there is a python binding to my surprise but not C.
The text was updated successfully, but these errors were encountered: