Skip to content

Commit aa3f841

Browse files
committed
Update auto-generated bindings
1 parent aa127f5 commit aa3f841

File tree

12 files changed

+341
-323
lines changed

12 files changed

+341
-323
lines changed

lightning-c-bindings/include/lightning.h

Lines changed: 83 additions & 77 deletions
Large diffs are not rendered by default.

lightning-c-bindings/include/lightningpp.hpp

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -881,20 +881,20 @@ class SpendableOutputDescriptor {
881881
const LDKSpendableOutputDescriptor* operator &() const { return &self; }
882882
const LDKSpendableOutputDescriptor* operator ->() const { return &self; }
883883
};
884-
class ChannelKeys {
884+
class Sign {
885885
private:
886-
LDKChannelKeys self;
886+
LDKSign self;
887887
public:
888-
ChannelKeys(const ChannelKeys&) = delete;
889-
ChannelKeys(ChannelKeys&& o) : self(o.self) { memset(&o, 0, sizeof(ChannelKeys)); }
890-
ChannelKeys(LDKChannelKeys&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKChannelKeys)); }
891-
operator LDKChannelKeys() && { LDKChannelKeys res = self; memset(&self, 0, sizeof(LDKChannelKeys)); return res; }
892-
~ChannelKeys() { ChannelKeys_free(self); }
893-
ChannelKeys& operator=(ChannelKeys&& o) { ChannelKeys_free(self); self = o.self; memset(&o, 0, sizeof(ChannelKeys)); return *this; }
894-
LDKChannelKeys* operator &() { return &self; }
895-
LDKChannelKeys* operator ->() { return &self; }
896-
const LDKChannelKeys* operator &() const { return &self; }
897-
const LDKChannelKeys* operator ->() const { return &self; }
888+
Sign(const Sign&) = delete;
889+
Sign(Sign&& o) : self(o.self) { memset(&o, 0, sizeof(Sign)); }
890+
Sign(LDKSign&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKSign)); }
891+
operator LDKSign() && { LDKSign res = self; memset(&self, 0, sizeof(LDKSign)); return res; }
892+
~Sign() { Sign_free(self); }
893+
Sign& operator=(Sign&& o) { Sign_free(self); self = o.self; memset(&o, 0, sizeof(Sign)); return *this; }
894+
LDKSign* operator &() { return &self; }
895+
LDKSign* operator ->() { return &self; }
896+
const LDKSign* operator &() const { return &self; }
897+
const LDKSign* operator ->() const { return &self; }
898898
};
899899
class KeysInterface {
900900
private:
@@ -911,20 +911,20 @@ class KeysInterface {
911911
const LDKKeysInterface* operator &() const { return &self; }
912912
const LDKKeysInterface* operator ->() const { return &self; }
913913
};
914-
class InMemoryChannelKeys {
914+
class InMemorySigner {
915915
private:
916-
LDKInMemoryChannelKeys self;
916+
LDKInMemorySigner self;
917917
public:
918-
InMemoryChannelKeys(const InMemoryChannelKeys&) = delete;
919-
InMemoryChannelKeys(InMemoryChannelKeys&& o) : self(o.self) { memset(&o, 0, sizeof(InMemoryChannelKeys)); }
920-
InMemoryChannelKeys(LDKInMemoryChannelKeys&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKInMemoryChannelKeys)); }
921-
operator LDKInMemoryChannelKeys() && { LDKInMemoryChannelKeys res = self; memset(&self, 0, sizeof(LDKInMemoryChannelKeys)); return res; }
922-
~InMemoryChannelKeys() { InMemoryChannelKeys_free(self); }
923-
InMemoryChannelKeys& operator=(InMemoryChannelKeys&& o) { InMemoryChannelKeys_free(self); self = o.self; memset(&o, 0, sizeof(InMemoryChannelKeys)); return *this; }
924-
LDKInMemoryChannelKeys* operator &() { return &self; }
925-
LDKInMemoryChannelKeys* operator ->() { return &self; }
926-
const LDKInMemoryChannelKeys* operator &() const { return &self; }
927-
const LDKInMemoryChannelKeys* operator ->() const { return &self; }
918+
InMemorySigner(const InMemorySigner&) = delete;
919+
InMemorySigner(InMemorySigner&& o) : self(o.self) { memset(&o, 0, sizeof(InMemorySigner)); }
920+
InMemorySigner(LDKInMemorySigner&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKInMemorySigner)); }
921+
operator LDKInMemorySigner() && { LDKInMemorySigner res = self; memset(&self, 0, sizeof(LDKInMemorySigner)); return res; }
922+
~InMemorySigner() { InMemorySigner_free(self); }
923+
InMemorySigner& operator=(InMemorySigner&& o) { InMemorySigner_free(self); self = o.self; memset(&o, 0, sizeof(InMemorySigner)); return *this; }
924+
LDKInMemorySigner* operator &() { return &self; }
925+
LDKInMemorySigner* operator ->() { return &self; }
926+
const LDKInMemorySigner* operator &() const { return &self; }
927+
const LDKInMemorySigner* operator ->() const { return &self; }
928928
};
929929
class KeysManager {
930930
private:
@@ -2411,6 +2411,21 @@ class CVec_ChannelDetailsZ {
24112411
const LDKCVec_ChannelDetailsZ* operator &() const { return &self; }
24122412
const LDKCVec_ChannelDetailsZ* operator ->() const { return &self; }
24132413
};
2414+
class CResult_SignDecodeErrorZ {
2415+
private:
2416+
LDKCResult_SignDecodeErrorZ self;
2417+
public:
2418+
CResult_SignDecodeErrorZ(const CResult_SignDecodeErrorZ&) = delete;
2419+
CResult_SignDecodeErrorZ(CResult_SignDecodeErrorZ&& o) : self(o.self) { memset(&o, 0, sizeof(CResult_SignDecodeErrorZ)); }
2420+
CResult_SignDecodeErrorZ(LDKCResult_SignDecodeErrorZ&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKCResult_SignDecodeErrorZ)); }
2421+
operator LDKCResult_SignDecodeErrorZ() && { LDKCResult_SignDecodeErrorZ res = self; memset(&self, 0, sizeof(LDKCResult_SignDecodeErrorZ)); return res; }
2422+
~CResult_SignDecodeErrorZ() { CResult_SignDecodeErrorZ_free(self); }
2423+
CResult_SignDecodeErrorZ& operator=(CResult_SignDecodeErrorZ&& o) { CResult_SignDecodeErrorZ_free(self); self = o.self; memset(&o, 0, sizeof(CResult_SignDecodeErrorZ)); return *this; }
2424+
LDKCResult_SignDecodeErrorZ* operator &() { return &self; }
2425+
LDKCResult_SignDecodeErrorZ* operator ->() { return &self; }
2426+
const LDKCResult_SignDecodeErrorZ* operator &() const { return &self; }
2427+
const LDKCResult_SignDecodeErrorZ* operator ->() const { return &self; }
2428+
};
24142429
class CVec_MessageSendEventZ {
24152430
private:
24162431
LDKCVec_MessageSendEventZ self;
@@ -2456,21 +2471,6 @@ class C2Tuple_OutPointScriptZ {
24562471
const LDKC2Tuple_OutPointScriptZ* operator &() const { return &self; }
24572472
const LDKC2Tuple_OutPointScriptZ* operator ->() const { return &self; }
24582473
};
2459-
class CResult_InMemoryChannelKeysDecodeErrorZ {
2460-
private:
2461-
LDKCResult_InMemoryChannelKeysDecodeErrorZ self;
2462-
public:
2463-
CResult_InMemoryChannelKeysDecodeErrorZ(const CResult_InMemoryChannelKeysDecodeErrorZ&) = delete;
2464-
CResult_InMemoryChannelKeysDecodeErrorZ(CResult_InMemoryChannelKeysDecodeErrorZ&& o) : self(o.self) { memset(&o, 0, sizeof(CResult_InMemoryChannelKeysDecodeErrorZ)); }
2465-
CResult_InMemoryChannelKeysDecodeErrorZ(LDKCResult_InMemoryChannelKeysDecodeErrorZ&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKCResult_InMemoryChannelKeysDecodeErrorZ)); }
2466-
operator LDKCResult_InMemoryChannelKeysDecodeErrorZ() && { LDKCResult_InMemoryChannelKeysDecodeErrorZ res = self; memset(&self, 0, sizeof(LDKCResult_InMemoryChannelKeysDecodeErrorZ)); return res; }
2467-
~CResult_InMemoryChannelKeysDecodeErrorZ() { CResult_InMemoryChannelKeysDecodeErrorZ_free(self); }
2468-
CResult_InMemoryChannelKeysDecodeErrorZ& operator=(CResult_InMemoryChannelKeysDecodeErrorZ&& o) { CResult_InMemoryChannelKeysDecodeErrorZ_free(self); self = o.self; memset(&o, 0, sizeof(CResult_InMemoryChannelKeysDecodeErrorZ)); return *this; }
2469-
LDKCResult_InMemoryChannelKeysDecodeErrorZ* operator &() { return &self; }
2470-
LDKCResult_InMemoryChannelKeysDecodeErrorZ* operator ->() { return &self; }
2471-
const LDKCResult_InMemoryChannelKeysDecodeErrorZ* operator &() const { return &self; }
2472-
const LDKCResult_InMemoryChannelKeysDecodeErrorZ* operator ->() const { return &self; }
2473-
};
24742474
class CResult_UpdateFailMalformedHTLCDecodeErrorZ {
24752475
private:
24762476
LDKCResult_UpdateFailMalformedHTLCDecodeErrorZ self;
@@ -3176,21 +3176,6 @@ class CResult_UpdateFulfillHTLCDecodeErrorZ {
31763176
const LDKCResult_UpdateFulfillHTLCDecodeErrorZ* operator &() const { return &self; }
31773177
const LDKCResult_UpdateFulfillHTLCDecodeErrorZ* operator ->() const { return &self; }
31783178
};
3179-
class CResult_ChannelKeysDecodeErrorZ {
3180-
private:
3181-
LDKCResult_ChannelKeysDecodeErrorZ self;
3182-
public:
3183-
CResult_ChannelKeysDecodeErrorZ(const CResult_ChannelKeysDecodeErrorZ&) = delete;
3184-
CResult_ChannelKeysDecodeErrorZ(CResult_ChannelKeysDecodeErrorZ&& o) : self(o.self) { memset(&o, 0, sizeof(CResult_ChannelKeysDecodeErrorZ)); }
3185-
CResult_ChannelKeysDecodeErrorZ(LDKCResult_ChannelKeysDecodeErrorZ&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKCResult_ChannelKeysDecodeErrorZ)); }
3186-
operator LDKCResult_ChannelKeysDecodeErrorZ() && { LDKCResult_ChannelKeysDecodeErrorZ res = self; memset(&self, 0, sizeof(LDKCResult_ChannelKeysDecodeErrorZ)); return res; }
3187-
~CResult_ChannelKeysDecodeErrorZ() { CResult_ChannelKeysDecodeErrorZ_free(self); }
3188-
CResult_ChannelKeysDecodeErrorZ& operator=(CResult_ChannelKeysDecodeErrorZ&& o) { CResult_ChannelKeysDecodeErrorZ_free(self); self = o.self; memset(&o, 0, sizeof(CResult_ChannelKeysDecodeErrorZ)); return *this; }
3189-
LDKCResult_ChannelKeysDecodeErrorZ* operator &() { return &self; }
3190-
LDKCResult_ChannelKeysDecodeErrorZ* operator ->() { return &self; }
3191-
const LDKCResult_ChannelKeysDecodeErrorZ* operator &() const { return &self; }
3192-
const LDKCResult_ChannelKeysDecodeErrorZ* operator ->() const { return &self; }
3193-
};
31943179
class CResult_NodeFeaturesDecodeErrorZ {
31953180
private:
31963181
LDKCResult_NodeFeaturesDecodeErrorZ self;
@@ -3206,6 +3191,21 @@ class CResult_NodeFeaturesDecodeErrorZ {
32063191
const LDKCResult_NodeFeaturesDecodeErrorZ* operator &() const { return &self; }
32073192
const LDKCResult_NodeFeaturesDecodeErrorZ* operator ->() const { return &self; }
32083193
};
3194+
class CResult_InMemorySignerDecodeErrorZ {
3195+
private:
3196+
LDKCResult_InMemorySignerDecodeErrorZ self;
3197+
public:
3198+
CResult_InMemorySignerDecodeErrorZ(const CResult_InMemorySignerDecodeErrorZ&) = delete;
3199+
CResult_InMemorySignerDecodeErrorZ(CResult_InMemorySignerDecodeErrorZ&& o) : self(o.self) { memset(&o, 0, sizeof(CResult_InMemorySignerDecodeErrorZ)); }
3200+
CResult_InMemorySignerDecodeErrorZ(LDKCResult_InMemorySignerDecodeErrorZ&& m_self) : self(m_self) { memset(&m_self, 0, sizeof(LDKCResult_InMemorySignerDecodeErrorZ)); }
3201+
operator LDKCResult_InMemorySignerDecodeErrorZ() && { LDKCResult_InMemorySignerDecodeErrorZ res = self; memset(&self, 0, sizeof(LDKCResult_InMemorySignerDecodeErrorZ)); return res; }
3202+
~CResult_InMemorySignerDecodeErrorZ() { CResult_InMemorySignerDecodeErrorZ_free(self); }
3203+
CResult_InMemorySignerDecodeErrorZ& operator=(CResult_InMemorySignerDecodeErrorZ&& o) { CResult_InMemorySignerDecodeErrorZ_free(self); self = o.self; memset(&o, 0, sizeof(CResult_InMemorySignerDecodeErrorZ)); return *this; }
3204+
LDKCResult_InMemorySignerDecodeErrorZ* operator &() { return &self; }
3205+
LDKCResult_InMemorySignerDecodeErrorZ* operator ->() { return &self; }
3206+
const LDKCResult_InMemorySignerDecodeErrorZ* operator &() const { return &self; }
3207+
const LDKCResult_InMemorySignerDecodeErrorZ* operator ->() const { return &self; }
3208+
};
32093209
class CResult_ReplyShortChannelIdsEndDecodeErrorZ {
32103210
private:
32113211
LDKCResult_ReplyShortChannelIdsEndDecodeErrorZ self;

lightning-c-bindings/include/rust_types.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ struct nativeDelayedPaymentOutputDescriptorOpaque;
8989
typedef struct nativeDelayedPaymentOutputDescriptorOpaque LDKnativeDelayedPaymentOutputDescriptor;
9090
struct nativeStaticPaymentOutputDescriptorOpaque;
9191
typedef struct nativeStaticPaymentOutputDescriptorOpaque LDKnativeStaticPaymentOutputDescriptor;
92-
struct LDKChannelKeys;
93-
typedef struct LDKChannelKeys LDKChannelKeys;
94-
struct nativeInMemoryChannelKeysOpaque;
95-
typedef struct nativeInMemoryChannelKeysOpaque LDKnativeInMemoryChannelKeys;
92+
struct LDKSign;
93+
typedef struct LDKSign LDKSign;
94+
struct nativeInMemorySignerOpaque;
95+
typedef struct nativeInMemorySignerOpaque LDKnativeInMemorySigner;
9696
struct nativeKeysManagerOpaque;
9797
typedef struct nativeKeysManagerOpaque LDKnativeKeysManager;
9898
struct nativeRouteHopOpaque;

lightning-c-bindings/src/c_types/derived.rs

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3852,36 +3852,36 @@ impl Clone for CResult_SignatureNoneZ {
38523852
#[no_mangle]
38533853
pub extern "C" fn CResult_SignatureNoneZ_clone(orig: &CResult_SignatureNoneZ) -> CResult_SignatureNoneZ { orig.clone() }
38543854
#[repr(C)]
3855-
pub union CResult_ChannelKeysDecodeErrorZPtr {
3856-
pub result: *mut crate::chain::keysinterface::ChannelKeys,
3855+
pub union CResult_SignDecodeErrorZPtr {
3856+
pub result: *mut crate::chain::keysinterface::Sign,
38573857
pub err: *mut crate::ln::msgs::DecodeError,
38583858
}
38593859
#[repr(C)]
3860-
pub struct CResult_ChannelKeysDecodeErrorZ {
3861-
pub contents: CResult_ChannelKeysDecodeErrorZPtr,
3860+
pub struct CResult_SignDecodeErrorZ {
3861+
pub contents: CResult_SignDecodeErrorZPtr,
38623862
pub result_ok: bool,
38633863
}
38643864
#[no_mangle]
3865-
pub extern "C" fn CResult_ChannelKeysDecodeErrorZ_ok(o: crate::chain::keysinterface::ChannelKeys) -> CResult_ChannelKeysDecodeErrorZ {
3866-
CResult_ChannelKeysDecodeErrorZ {
3867-
contents: CResult_ChannelKeysDecodeErrorZPtr {
3865+
pub extern "C" fn CResult_SignDecodeErrorZ_ok(o: crate::chain::keysinterface::Sign) -> CResult_SignDecodeErrorZ {
3866+
CResult_SignDecodeErrorZ {
3867+
contents: CResult_SignDecodeErrorZPtr {
38683868
result: Box::into_raw(Box::new(o)),
38693869
},
38703870
result_ok: true,
38713871
}
38723872
}
38733873
#[no_mangle]
3874-
pub extern "C" fn CResult_ChannelKeysDecodeErrorZ_err(e: crate::ln::msgs::DecodeError) -> CResult_ChannelKeysDecodeErrorZ {
3875-
CResult_ChannelKeysDecodeErrorZ {
3876-
contents: CResult_ChannelKeysDecodeErrorZPtr {
3874+
pub extern "C" fn CResult_SignDecodeErrorZ_err(e: crate::ln::msgs::DecodeError) -> CResult_SignDecodeErrorZ {
3875+
CResult_SignDecodeErrorZ {
3876+
contents: CResult_SignDecodeErrorZPtr {
38773877
err: Box::into_raw(Box::new(e)),
38783878
},
38793879
result_ok: false,
38803880
}
38813881
}
38823882
#[no_mangle]
3883-
pub extern "C" fn CResult_ChannelKeysDecodeErrorZ_free(_res: CResult_ChannelKeysDecodeErrorZ) { }
3884-
impl Drop for CResult_ChannelKeysDecodeErrorZ {
3883+
pub extern "C" fn CResult_SignDecodeErrorZ_free(_res: CResult_SignDecodeErrorZ) { }
3884+
impl Drop for CResult_SignDecodeErrorZ {
38853885
fn drop(&mut self) {
38863886
if self.result_ok {
38873887
if unsafe { !(self.contents.result as *mut ()).is_null() } {
@@ -3894,38 +3894,38 @@ impl Drop for CResult_ChannelKeysDecodeErrorZ {
38943894
}
38953895
}
38963896
}
3897-
impl From<crate::c_types::CResultTempl<crate::chain::keysinterface::ChannelKeys, crate::ln::msgs::DecodeError>> for CResult_ChannelKeysDecodeErrorZ {
3898-
fn from(mut o: crate::c_types::CResultTempl<crate::chain::keysinterface::ChannelKeys, crate::ln::msgs::DecodeError>) -> Self {
3897+
impl From<crate::c_types::CResultTempl<crate::chain::keysinterface::Sign, crate::ln::msgs::DecodeError>> for CResult_SignDecodeErrorZ {
3898+
fn from(mut o: crate::c_types::CResultTempl<crate::chain::keysinterface::Sign, crate::ln::msgs::DecodeError>) -> Self {
38993899
let contents = if o.result_ok {
39003900
let result = unsafe { o.contents.result };
39013901
unsafe { o.contents.result = std::ptr::null_mut() };
3902-
CResult_ChannelKeysDecodeErrorZPtr { result }
3902+
CResult_SignDecodeErrorZPtr { result }
39033903
} else {
39043904
let err = unsafe { o.contents.err };
39053905
unsafe { o.contents.err = std::ptr::null_mut(); }
3906-
CResult_ChannelKeysDecodeErrorZPtr { err }
3906+
CResult_SignDecodeErrorZPtr { err }
39073907
};
39083908
Self {
39093909
contents,
39103910
result_ok: o.result_ok,
39113911
}
39123912
}
39133913
}
3914-
impl Clone for CResult_ChannelKeysDecodeErrorZ {
3914+
impl Clone for CResult_SignDecodeErrorZ {
39153915
fn clone(&self) -> Self {
39163916
if self.result_ok {
3917-
Self { result_ok: true, contents: CResult_ChannelKeysDecodeErrorZPtr {
3918-
result: Box::into_raw(Box::new(<crate::chain::keysinterface::ChannelKeys>::clone(unsafe { &*self.contents.result })))
3917+
Self { result_ok: true, contents: CResult_SignDecodeErrorZPtr {
3918+
result: Box::into_raw(Box::new(<crate::chain::keysinterface::Sign>::clone(unsafe { &*self.contents.result })))
39193919
} }
39203920
} else {
3921-
Self { result_ok: false, contents: CResult_ChannelKeysDecodeErrorZPtr {
3921+
Self { result_ok: false, contents: CResult_SignDecodeErrorZPtr {
39223922
err: Box::into_raw(Box::new(<crate::ln::msgs::DecodeError>::clone(unsafe { &*self.contents.err })))
39233923
} }
39243924
}
39253925
}
39263926
}
39273927
#[no_mangle]
3928-
pub extern "C" fn CResult_ChannelKeysDecodeErrorZ_clone(orig: &CResult_ChannelKeysDecodeErrorZ) -> CResult_ChannelKeysDecodeErrorZ { orig.clone() }
3928+
pub extern "C" fn CResult_SignDecodeErrorZ_clone(orig: &CResult_SignDecodeErrorZ) -> CResult_SignDecodeErrorZ { orig.clone() }
39293929
#[repr(C)]
39303930
pub struct CVec_CVec_u8ZZ {
39313931
pub data: *mut crate::c_types::derived::CVec_u8Z,
@@ -4040,36 +4040,36 @@ impl Clone for CResult_CVec_CVec_u8ZZNoneZ {
40404040
#[no_mangle]
40414041
pub extern "C" fn CResult_CVec_CVec_u8ZZNoneZ_clone(orig: &CResult_CVec_CVec_u8ZZNoneZ) -> CResult_CVec_CVec_u8ZZNoneZ { orig.clone() }
40424042
#[repr(C)]
4043-
pub union CResult_InMemoryChannelKeysDecodeErrorZPtr {
4044-
pub result: *mut crate::chain::keysinterface::InMemoryChannelKeys,
4043+
pub union CResult_InMemorySignerDecodeErrorZPtr {
4044+
pub result: *mut crate::chain::keysinterface::InMemorySigner,
40454045
pub err: *mut crate::ln::msgs::DecodeError,
40464046
}
40474047
#[repr(C)]
4048-
pub struct CResult_InMemoryChannelKeysDecodeErrorZ {
4049-
pub contents: CResult_InMemoryChannelKeysDecodeErrorZPtr,
4048+
pub struct CResult_InMemorySignerDecodeErrorZ {
4049+
pub contents: CResult_InMemorySignerDecodeErrorZPtr,
40504050
pub result_ok: bool,
40514051
}
40524052
#[no_mangle]
4053-
pub extern "C" fn CResult_InMemoryChannelKeysDecodeErrorZ_ok(o: crate::chain::keysinterface::InMemoryChannelKeys) -> CResult_InMemoryChannelKeysDecodeErrorZ {
4054-
CResult_InMemoryChannelKeysDecodeErrorZ {
4055-
contents: CResult_InMemoryChannelKeysDecodeErrorZPtr {
4053+
pub extern "C" fn CResult_InMemorySignerDecodeErrorZ_ok(o: crate::chain::keysinterface::InMemorySigner) -> CResult_InMemorySignerDecodeErrorZ {
4054+
CResult_InMemorySignerDecodeErrorZ {
4055+
contents: CResult_InMemorySignerDecodeErrorZPtr {
40564056
result: Box::into_raw(Box::new(o)),
40574057
},
40584058
result_ok: true,
40594059
}
40604060
}
40614061
#[no_mangle]
4062-
pub extern "C" fn CResult_InMemoryChannelKeysDecodeErrorZ_err(e: crate::ln::msgs::DecodeError) -> CResult_InMemoryChannelKeysDecodeErrorZ {
4063-
CResult_InMemoryChannelKeysDecodeErrorZ {
4064-
contents: CResult_InMemoryChannelKeysDecodeErrorZPtr {
4062+
pub extern "C" fn CResult_InMemorySignerDecodeErrorZ_err(e: crate::ln::msgs::DecodeError) -> CResult_InMemorySignerDecodeErrorZ {
4063+
CResult_InMemorySignerDecodeErrorZ {
4064+
contents: CResult_InMemorySignerDecodeErrorZPtr {
40654065
err: Box::into_raw(Box::new(e)),
40664066
},
40674067
result_ok: false,
40684068
}
40694069
}
40704070
#[no_mangle]
4071-
pub extern "C" fn CResult_InMemoryChannelKeysDecodeErrorZ_free(_res: CResult_InMemoryChannelKeysDecodeErrorZ) { }
4072-
impl Drop for CResult_InMemoryChannelKeysDecodeErrorZ {
4071+
pub extern "C" fn CResult_InMemorySignerDecodeErrorZ_free(_res: CResult_InMemorySignerDecodeErrorZ) { }
4072+
impl Drop for CResult_InMemorySignerDecodeErrorZ {
40734073
fn drop(&mut self) {
40744074
if self.result_ok {
40754075
if unsafe { !(self.contents.result as *mut ()).is_null() } {
@@ -4082,38 +4082,38 @@ impl Drop for CResult_InMemoryChannelKeysDecodeErrorZ {
40824082
}
40834083
}
40844084
}
4085-
impl From<crate::c_types::CResultTempl<crate::chain::keysinterface::InMemoryChannelKeys, crate::ln::msgs::DecodeError>> for CResult_InMemoryChannelKeysDecodeErrorZ {
4086-
fn from(mut o: crate::c_types::CResultTempl<crate::chain::keysinterface::InMemoryChannelKeys, crate::ln::msgs::DecodeError>) -> Self {
4085+
impl From<crate::c_types::CResultTempl<crate::chain::keysinterface::InMemorySigner, crate::ln::msgs::DecodeError>> for CResult_InMemorySignerDecodeErrorZ {
4086+
fn from(mut o: crate::c_types::CResultTempl<crate::chain::keysinterface::InMemorySigner, crate::ln::msgs::DecodeError>) -> Self {
40874087
let contents = if o.result_ok {
40884088
let result = unsafe { o.contents.result };
40894089
unsafe { o.contents.result = std::ptr::null_mut() };
4090-
CResult_InMemoryChannelKeysDecodeErrorZPtr { result }
4090+
CResult_InMemorySignerDecodeErrorZPtr { result }
40914091
} else {
40924092
let err = unsafe { o.contents.err };
40934093
unsafe { o.contents.err = std::ptr::null_mut(); }
4094-
CResult_InMemoryChannelKeysDecodeErrorZPtr { err }
4094+
CResult_InMemorySignerDecodeErrorZPtr { err }
40954095
};
40964096
Self {
40974097
contents,
40984098
result_ok: o.result_ok,
40994099
}
41004100
}
41014101
}
4102-
impl Clone for CResult_InMemoryChannelKeysDecodeErrorZ {
4102+
impl Clone for CResult_InMemorySignerDecodeErrorZ {
41034103
fn clone(&self) -> Self {
41044104
if self.result_ok {
4105-
Self { result_ok: true, contents: CResult_InMemoryChannelKeysDecodeErrorZPtr {
4106-
result: Box::into_raw(Box::new(<crate::chain::keysinterface::InMemoryChannelKeys>::clone(unsafe { &*self.contents.result })))
4105+
Self { result_ok: true, contents: CResult_InMemorySignerDecodeErrorZPtr {
4106+
result: Box::into_raw(Box::new(<crate::chain::keysinterface::InMemorySigner>::clone(unsafe { &*self.contents.result })))
41074107
} }
41084108
} else {
4109-
Self { result_ok: false, contents: CResult_InMemoryChannelKeysDecodeErrorZPtr {
4109+
Self { result_ok: false, contents: CResult_InMemorySignerDecodeErrorZPtr {
41104110
err: Box::into_raw(Box::new(<crate::ln::msgs::DecodeError>::clone(unsafe { &*self.contents.err })))
41114111
} }
41124112
}
41134113
}
41144114
}
41154115
#[no_mangle]
4116-
pub extern "C" fn CResult_InMemoryChannelKeysDecodeErrorZ_clone(orig: &CResult_InMemoryChannelKeysDecodeErrorZ) -> CResult_InMemoryChannelKeysDecodeErrorZ { orig.clone() }
4116+
pub extern "C" fn CResult_InMemorySignerDecodeErrorZ_clone(orig: &CResult_InMemorySignerDecodeErrorZ) -> CResult_InMemorySignerDecodeErrorZ { orig.clone() }
41174117
#[repr(C)]
41184118
pub struct CVec_TxOutZ {
41194119
pub data: *mut crate::c_types::TxOut,

0 commit comments

Comments
 (0)