Ji-Xinyou opened a new pull request, #1861:
URL: https://github.com/apache/incubator-opendal/pull/1861
* Add the init logics for operator
* Add the basic io operations (r/w)
* Add the test for basicio
Fixes: #1201
I want to raise this PR for further discussions. And I think(maybe?) a user
guide and developer guide for C bindings is needed for style consistency.
Some explainations:
1. Why we have an `OperatorPtr` type.
* This is because cbindgen does not support arbitrary types. Therefore,
I store the `Operator`'s address inside the pointer, and use `get_ref` to
provide a immutable reference to its underlying `BlockingOperator`.
2. In C, librarys normally have prefix, I naively uses `od` as the function
prefix and `opendal` as struct prefix.
3. Why we have an 'Vector` type.
* This is related to the same problem. The cbindgen does not support
`Vec<T>` from Rust, therefore I uses a quite brute force way of a C-compatible
alternative.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]