From: Matt Corallo Date: Mon, 27 Feb 2023 18:51:59 +0000 (+0000) Subject: Support passing `Option<&OpaqueStruct>` to C X-Git-Tag: v0.0.114.0^2~15 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=6ee7c2a51f172ea1c5cb68249b10e32a3a22ac82;hp=6ee7c2a51f172ea1c5cb68249b10e32a3a22ac82;p=ldk-c-bindings Support passing `Option<&OpaqueStruct>` to C Luckily the solution is trivial - just treat the conversion for the inner pointer as `ptr_for_ref`, because we ultimately want a pointer on the inside, not on the outside. ---