]> git.bitcoin.ninja Git - rust-lightning/commit
[bindings] Use common conv in `_write` impls, drop type restrictions
authorMatt Corallo <git@bluematt.me>
Wed, 30 Dec 2020 22:50:43 +0000 (17:50 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 4 Jan 2021 21:14:26 +0000 (16:14 -0500)
commit99fb8a80f12896184e6e5e3f95d115fbf9398c09
tree9cd5f3e4d72c00477290adb9ef41fec0dc3aa632
parent30b68a134ccb32f6843d3a73b719983746739461
[bindings] Use common conv in `_write` impls, drop type restrictions

This expands the manual implementation logic for `*_write` and
`*_read` methods to most types, converting the `*_write` path to
the common type-conversion logic to ensure it works.

Note that `*_write_void` is still only implemented for has-inner
types, as its unclear what the `void*` would point to for others.
c-bindings-gen/src/main.rs
c-bindings-gen/src/types.rs