X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Finclude%2Flightning.h;h=cbbe93e216602072c47bb29557a7753071f6132b;hb=4f282d4cdae9b2e79e4fd604b629517898f02262;hp=8afabdc1b96d4c5974801ef2dcf5277df3b6eb1f;hpb=82601052fe2cac04a6249f5930495e987923303b;p=ldk-c-bindings diff --git a/lightning-c-bindings/include/lightning.h b/lightning-c-bindings/include/lightning.h index 8afabdc..cbbe93e 100644 --- a/lightning-c-bindings/include/lightning.h +++ b/lightning-c-bindings/include/lightning.h @@ -7884,7 +7884,7 @@ typedef struct LDKChannelSigner { /** * Returns the holder's channel public keys and basepoints. */ - struct LDKChannelPublicKeys pubkeys; + LDKChannelPublicKeys pubkeys; /** * Fill in the pubkeys field as a reference to it will be given to Rust after this returns * Note that this takes a pointer to this object, not the this_ptr like other methods do @@ -18324,6 +18324,12 @@ struct LDKCOption_ScalarZ COption_ScalarZ_none(void); */ void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res); +/** + * Creates a new COption_ScalarZ which has the same data as `orig` + * but with all dynamically-allocated buffers duplicated in new buffers. + */ +struct LDKCOption_ScalarZ COption_ScalarZ_clone(const struct LDKCOption_ScalarZ *NONNULL_PTR orig); + /** * Creates a new CResult_SharedSecretNoneZ in the success state. */