File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -814,6 +814,7 @@ fn initial_clonable_types() -> HashSet<String> {
814
814
res. insert ( "crate::c_types::TxOut" . to_owned ( ) ) ;
815
815
res. insert ( "crate::c_types::Signature" . to_owned ( ) ) ;
816
816
res. insert ( "crate::c_types::RecoverableSignature" . to_owned ( ) ) ;
817
+ res. insert ( "crate::c_types::BigEndianScalar" . to_owned ( ) ) ;
817
818
res. insert ( "crate::c_types::Bech32Error" . to_owned ( ) ) ;
818
819
res. insert ( "crate::c_types::Secp256k1Error" . to_owned ( ) ) ;
819
820
res. insert ( "crate::c_types::IOError" . to_owned ( ) ) ;
Original file line number Diff line number Diff line change @@ -18324,6 +18324,12 @@ struct LDKCOption_ScalarZ COption_ScalarZ_none(void);
18324
18324
*/
18325
18325
void COption_ScalarZ_free(struct LDKCOption_ScalarZ _res);
18326
18326
18327
+ /**
18328
+ * Creates a new COption_ScalarZ which has the same data as `orig`
18329
+ * but with all dynamically-allocated buffers duplicated in new buffers.
18330
+ */
18331
+ struct LDKCOption_ScalarZ COption_ScalarZ_clone(const struct LDKCOption_ScalarZ *NONNULL_PTR orig);
18332
+
18327
18333
/**
18328
18334
* Creates a new CResult_SharedSecretNoneZ in the success state.
18329
18335
*/
Original file line number Diff line number Diff line change @@ -7826,6 +7826,7 @@ impl Clone for CResult_PublicKeyNoneZ {
7826
7826
/// but with all dynamically-allocated buffers duplicated in new buffers.
7827
7827
pub extern "C" fn CResult_PublicKeyNoneZ_clone(orig: &CResult_PublicKeyNoneZ) -> CResult_PublicKeyNoneZ { Clone::clone(&orig) }
7828
7828
#[repr(C)]
7829
+ #[derive(Clone)]
7829
7830
/// An enum which can either contain a crate::c_types::BigEndianScalar or not
7830
7831
pub enum COption_ScalarZ {
7831
7832
/// 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 {
7857
7858
#[no_mangle]
7858
7859
/// Frees any resources associated with the crate::c_types::BigEndianScalar, if we are in the Some state
7859
7860
pub extern "C" fn COption_ScalarZ_free(_res: COption_ScalarZ) { }
7861
+ #[no_mangle]
7862
+ /// Creates a new COption_ScalarZ which has the same data as `orig`
7863
+ /// but with all dynamically-allocated buffers duplicated in new buffers.
7864
+ pub extern "C" fn COption_ScalarZ_clone(orig: &COption_ScalarZ) -> COption_ScalarZ { Clone::clone(&orig) }
7860
7865
#[repr(C)]
7861
7866
/// The contents of CResult_SharedSecretNoneZ
7862
7867
pub union CResult_SharedSecretNoneZPtr {
You can’t perform that action at this time.
0 commit comments