search for: nbderror

Displaying 2 results from an estimated 2 matches for "nbderror".

Did you mean: nbd_error
2019 Aug 31
1
[PATCH libnbd] Add bindings for Rust language
Still not working, but I took the latest patch and: - rebased it against libnbd 1.0 - fixed it so it handles new args and cbargs The generator now runs without warnings. This patch doesn't handle optargs at all. In C these are converted to non-optional parameter. Rust doesn't (AFAIK) have optional or labelled arguments unfortunately. Rich.
2019 Jul 07
2
[libnbd PATCH] RFC: Add bindings for Rust language
...uot; + | RFd -> "RawFd" + | RInt -> "i32" + | RConstString -> "&'static str" + | RInt64 -> "i64" + | RString -> "String" in + if may_set_error then "Result<" ^ typ ^ ", NbdError>" else typ + in + + (* TODO: at least shortdesc *) + pr "\n pub fn %s" name; + print_rust_arg_list ~handle:true 2 args; + pr " -> %s {\n" ret_rs_type; + + let num = ref 0 in + let arg_transform arg num = + (* TODO: transform Rust types to...