]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update auto-generated bindings
authorMatt Corallo <git@bluematt.me>
Wed, 31 May 2023 20:40:00 +0000 (20:40 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 31 May 2023 20:40:00 +0000 (20:40 +0000)
lightning-c-bindings/include/lightning.h
lightning-c-bindings/src/c_types/derived.rs

index 8afabdc1b96d4c5974801ef2dcf5277df3b6eb1f..da7fa8e179ea2095980a17bc876325e53b7d06a8 100644 (file)
@@ -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.
  */
index 9b47257d89926f0449f91981c17865c725fbcc49..ad65e755ff0de088752a198ec8cf65633206cde2 100644 (file)
@@ -7826,6 +7826,7 @@ impl Clone for CResult_PublicKeyNoneZ {
 /// but with all dynamically-allocated buffers duplicated in new buffers.
 pub extern "C" fn CResult_PublicKeyNoneZ_clone(orig: &CResult_PublicKeyNoneZ) -> CResult_PublicKeyNoneZ { Clone::clone(&orig) }
 #[repr(C)]
+#[derive(Clone)]
 /// An enum which can either contain a crate::c_types::BigEndianScalar or not
 pub enum COption_ScalarZ {
        /// When we're in this state, this COption_ScalarZ contains a crate::c_types::BigEndianScalar
@@ -7857,6 +7858,10 @@ pub extern "C" fn COption_ScalarZ_none() -> COption_ScalarZ {
 #[no_mangle]
 /// Frees any resources associated with the crate::c_types::BigEndianScalar, if we are in the Some state
 pub extern "C" fn COption_ScalarZ_free(_res: COption_ScalarZ) { }
+#[no_mangle]
+/// Creates a new COption_ScalarZ which has the same data as `orig`
+/// but with all dynamically-allocated buffers duplicated in new buffers.
+pub extern "C" fn COption_ScalarZ_clone(orig: &COption_ScalarZ) -> COption_ScalarZ { Clone::clone(&orig) }
 #[repr(C)]
 /// The contents of CResult_SharedSecretNoneZ
 pub union CResult_SharedSecretNoneZPtr {