[bindings] Un-Box Tuple mapping
authorMatt Corallo <git@bluematt.me>
Thu, 8 Oct 2020 23:35:50 +0000 (19:35 -0400)
committerMatt Corallo <git@bluematt.me>
Wed, 21 Oct 2020 18:54:51 +0000 (14:54 -0400)
commit2d0cdbd33e63a82b5c9215d21a730e3e7a96ee74
tree51fb758cf3b95a97829a0e2f524d037d290dc9a3
parent65884fffee4c717623cef441acb82035f3f92308
[bindings] Un-Box Tuple mapping

Because the C++ wrappers require being able to memset(0) the C
structs to skip free(), we'd previously mapped tuples with two
pointer indirections. However, because all other types already
support memset(0)'ing to disable free() logic, we can skip the
pointer indirections and the behavior is still correct.
c-bindings-gen/src/types.rs
lightning-c-bindings/src/c_types/mod.rs