Skip to content

Commit 5cd4504

Browse files
committed
Clone non-primitive types in Vec to array converters.
1 parent d1e33c2 commit 5cd4504

16 files changed

+68
-57
lines changed

ci/LDKSwift/Sources/LDKSwift/bindings/Bindings.swift

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ public class Bindings {
826826
for index in 0..<Int(nativeType.datalen) {
827827
let currentEntry = nativeType.data[index]
828828
/* CONVERSION_PREP */
829-
array.append(currentEntry)
829+
array.append(withUnsafePointer(to: currentEntry){ origPointer in APIError_clone(origPointer) })
830830
}
831831

832832
if deallocate {
@@ -929,7 +929,7 @@ public class Bindings {
929929
for index in 0..<Int(nativeType.datalen) {
930930
let currentEntry = nativeType.data[index]
931931
/* CONVERSION_PREP */
932-
array.append(currentEntry)
932+
array.append(withUnsafePointer(to: currentEntry){ origPointer in Balance_clone(origPointer) })
933933
}
934934

935935
if deallocate {
@@ -1032,7 +1032,7 @@ public class Bindings {
10321032
for index in 0..<Int(nativeType.datalen) {
10331033
let currentEntry = nativeType.data[index]
10341034
/* CONVERSION_PREP */
1035-
array.append(currentEntry)
1035+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_BlockHashChannelMonitorZ_clone(origPointer) })
10361036
}
10371037

10381038
if deallocate {
@@ -1135,7 +1135,7 @@ public class Bindings {
11351135
for index in 0..<Int(nativeType.datalen) {
11361136
let currentEntry = nativeType.data[index]
11371137
/* CONVERSION_PREP */
1138-
array.append(currentEntry)
1138+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_PublicKeyTypeZ_clone(origPointer) })
11391139
}
11401140

11411141
if deallocate {
@@ -1238,7 +1238,7 @@ public class Bindings {
12381238
for index in 0..<Int(nativeType.datalen) {
12391239
let currentEntry = nativeType.data[index]
12401240
/* CONVERSION_PREP */
1241-
array.append(currentEntry)
1241+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ_clone(origPointer) })
12421242
}
12431243

12441244
if deallocate {
@@ -1341,7 +1341,7 @@ public class Bindings {
13411341
for index in 0..<Int(nativeType.datalen) {
13421342
let currentEntry = nativeType.data[index]
13431343
/* CONVERSION_PREP */
1344-
array.append(currentEntry)
1344+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_u32ScriptZ_clone(origPointer) })
13451345
}
13461346

13471347
if deallocate {
@@ -1444,7 +1444,7 @@ public class Bindings {
14441444
for index in 0..<Int(nativeType.datalen) {
14451445
let currentEntry = nativeType.data[index]
14461446
/* CONVERSION_PREP */
1447-
array.append(currentEntry)
1447+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_u32TxOutZ_clone(origPointer) })
14481448
}
14491449

14501450
if deallocate {
@@ -1547,7 +1547,7 @@ public class Bindings {
15471547
for index in 0..<Int(nativeType.datalen) {
15481548
let currentEntry = nativeType.data[index]
15491549
/* CONVERSION_PREP */
1550-
array.append(currentEntry)
1550+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_usizeTransactionZ_clone(origPointer) })
15511551
}
15521552

15531553
if deallocate {
@@ -1650,7 +1650,7 @@ public class Bindings {
16501650
for index in 0..<Int(nativeType.datalen) {
16511651
let currentEntry = nativeType.data[index]
16521652
/* CONVERSION_PREP */
1653-
array.append(currentEntry)
1653+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C3Tuple_OutPointCVec_MonitorEventZPublicKeyZ_clone(origPointer) })
16541654
}
16551655

16561656
if deallocate {
@@ -1753,7 +1753,7 @@ public class Bindings {
17531753
for index in 0..<Int(nativeType.datalen) {
17541754
let currentEntry = nativeType.data[index]
17551755
/* CONVERSION_PREP */
1756-
array.append(currentEntry)
1756+
array.append(withUnsafePointer(to: currentEntry){ origPointer in CResult_NoneAPIErrorZ_clone(origPointer) })
17571757
}
17581758

17591759
if deallocate {
@@ -2046,7 +2046,7 @@ public class Bindings {
20462046
for index in 0..<Int(nativeType.datalen) {
20472047
let currentEntry = nativeType.data[index]
20482048
/* CONVERSION_PREP */
2049-
array.append(currentEntry)
2049+
array.append(withUnsafePointer(to: currentEntry){ origPointer in ChannelDetails_clone(origPointer) })
20502050
}
20512051

20522052
if deallocate {
@@ -2149,7 +2149,7 @@ public class Bindings {
21492149
for index in 0..<Int(nativeType.datalen) {
21502150
let currentEntry = nativeType.data[index]
21512151
/* CONVERSION_PREP */
2152-
array.append(currentEntry)
2152+
array.append(withUnsafePointer(to: currentEntry){ origPointer in ChannelMonitor_clone(origPointer) })
21532153
}
21542154

21552155
if deallocate {
@@ -2252,7 +2252,7 @@ public class Bindings {
22522252
for index in 0..<Int(nativeType.datalen) {
22532253
let currentEntry = nativeType.data[index]
22542254
/* CONVERSION_PREP */
2255-
array.append(currentEntry)
2255+
array.append(withUnsafePointer(to: currentEntry){ origPointer in Event_clone(origPointer) })
22562256
}
22572257

22582258
if deallocate {
@@ -2355,7 +2355,7 @@ public class Bindings {
23552355
for index in 0..<Int(nativeType.datalen) {
23562356
let currentEntry = nativeType.data[index]
23572357
/* CONVERSION_PREP */
2358-
array.append(currentEntry)
2358+
array.append(withUnsafePointer(to: currentEntry){ origPointer in MessageSendEvent_clone(origPointer) })
23592359
}
23602360

23612361
if deallocate {
@@ -2458,7 +2458,7 @@ public class Bindings {
24582458
for index in 0..<Int(nativeType.datalen) {
24592459
let currentEntry = nativeType.data[index]
24602460
/* CONVERSION_PREP */
2461-
array.append(currentEntry)
2461+
array.append(withUnsafePointer(to: currentEntry){ origPointer in MonitorEvent_clone(origPointer) })
24622462
}
24632463

24642464
if deallocate {
@@ -2561,7 +2561,7 @@ public class Bindings {
25612561
for index in 0..<Int(nativeType.datalen) {
25622562
let currentEntry = nativeType.data[index]
25632563
/* CONVERSION_PREP */
2564-
array.append(currentEntry)
2564+
array.append(withUnsafePointer(to: currentEntry){ origPointer in NetAddress_clone(origPointer) })
25652565
}
25662566

25672567
if deallocate {
@@ -2664,7 +2664,7 @@ public class Bindings {
26642664
for index in 0..<Int(nativeType.datalen) {
26652665
let currentEntry = nativeType.data[index]
26662666
/* CONVERSION_PREP */
2667-
array.append(currentEntry)
2667+
array.append(withUnsafePointer(to: currentEntry){ origPointer in NodeId_clone(origPointer) })
26682668
}
26692669

26702670
if deallocate {
@@ -2767,7 +2767,7 @@ public class Bindings {
27672767
for index in 0..<Int(nativeType.datalen) {
27682768
let currentEntry = nativeType.data[index]
27692769
/* CONVERSION_PREP */
2770-
array.append(currentEntry)
2770+
array.append(withUnsafePointer(to: currentEntry){ origPointer in OutPoint_clone(origPointer) })
27712771
}
27722772

27732773
if deallocate {
@@ -2958,7 +2958,7 @@ public class Bindings {
29582958
for index in 0..<Int(nativeType.datalen) {
29592959
let currentEntry = nativeType.data[index]
29602960
/* CONVERSION_PREP */
2961-
array.append(currentEntry)
2961+
array.append(withUnsafePointer(to: currentEntry){ origPointer in PhantomRouteHints_clone(origPointer) })
29622962
}
29632963

29642964
if deallocate {
@@ -3061,7 +3061,7 @@ public class Bindings {
30613061
for index in 0..<Int(nativeType.datalen) {
30623062
let currentEntry = nativeType.data[index]
30633063
/* CONVERSION_PREP */
3064-
array.append(currentEntry)
3064+
array.append(withUnsafePointer(to: currentEntry){ origPointer in PrivateRoute_clone(origPointer) })
30653065
}
30663066

30673067
if deallocate {
@@ -3252,7 +3252,7 @@ public class Bindings {
32523252
for index in 0..<Int(nativeType.datalen) {
32533253
let currentEntry = nativeType.data[index]
32543254
/* CONVERSION_PREP */
3255-
array.append(currentEntry)
3255+
array.append(withUnsafePointer(to: currentEntry){ origPointer in RouteHintHop_clone(origPointer) })
32563256
}
32573257

32583258
if deallocate {
@@ -3355,7 +3355,7 @@ public class Bindings {
33553355
for index in 0..<Int(nativeType.datalen) {
33563356
let currentEntry = nativeType.data[index]
33573357
/* CONVERSION_PREP */
3358-
array.append(currentEntry)
3358+
array.append(withUnsafePointer(to: currentEntry){ origPointer in RouteHint_clone(origPointer) })
33593359
}
33603360

33613361
if deallocate {
@@ -3458,7 +3458,7 @@ public class Bindings {
34583458
for index in 0..<Int(nativeType.datalen) {
34593459
let currentEntry = nativeType.data[index]
34603460
/* CONVERSION_PREP */
3461-
array.append(currentEntry)
3461+
array.append(withUnsafePointer(to: currentEntry){ origPointer in RouteHop_clone(origPointer) })
34623462
}
34633463

34643464
if deallocate {
@@ -3649,7 +3649,7 @@ public class Bindings {
36493649
for index in 0..<Int(nativeType.datalen) {
36503650
let currentEntry = nativeType.data[index]
36513651
/* CONVERSION_PREP */
3652-
array.append(currentEntry)
3652+
array.append(withUnsafePointer(to: currentEntry){ origPointer in SpendableOutputDescriptor_clone(origPointer) })
36533653
}
36543654

36553655
if deallocate {
@@ -3840,7 +3840,7 @@ public class Bindings {
38403840
for index in 0..<Int(nativeType.datalen) {
38413841
let currentEntry = nativeType.data[index]
38423842
/* CONVERSION_PREP */
3843-
array.append(currentEntry)
3843+
array.append(withUnsafePointer(to: currentEntry){ origPointer in C2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ_clone(origPointer) })
38443844
}
38453845

38463846
if deallocate {
@@ -4039,7 +4039,7 @@ public class Bindings {
40394039
for index in 0..<Int(nativeType.datalen) {
40404040
let currentEntry = nativeType.data[index]
40414041
/* CONVERSION_PREP */
4042-
array.append(currentEntry)
4042+
array.append(withUnsafePointer(to: currentEntry){ origPointer in TxOut_clone(origPointer) })
40434043
}
40444044

40454045
if deallocate {
@@ -4230,7 +4230,7 @@ public class Bindings {
42304230
for index in 0..<Int(nativeType.datalen) {
42314231
let currentEntry = nativeType.data[index]
42324232
/* CONVERSION_PREP */
4233-
array.append(currentEntry)
4233+
array.append(withUnsafePointer(to: currentEntry){ origPointer in UpdateAddHTLC_clone(origPointer) })
42344234
}
42354235

42364236
if deallocate {
@@ -4333,7 +4333,7 @@ public class Bindings {
43334333
for index in 0..<Int(nativeType.datalen) {
43344334
let currentEntry = nativeType.data[index]
43354335
/* CONVERSION_PREP */
4336-
array.append(currentEntry)
4336+
array.append(withUnsafePointer(to: currentEntry){ origPointer in UpdateFailHTLC_clone(origPointer) })
43374337
}
43384338

43394339
if deallocate {
@@ -4436,7 +4436,7 @@ public class Bindings {
44364436
for index in 0..<Int(nativeType.datalen) {
44374437
let currentEntry = nativeType.data[index]
44384438
/* CONVERSION_PREP */
4439-
array.append(currentEntry)
4439+
array.append(withUnsafePointer(to: currentEntry){ origPointer in UpdateFailMalformedHTLC_clone(origPointer) })
44404440
}
44414441

44424442
if deallocate {
@@ -4539,7 +4539,7 @@ public class Bindings {
45394539
for index in 0..<Int(nativeType.datalen) {
45404540
let currentEntry = nativeType.data[index]
45414541
/* CONVERSION_PREP */
4542-
array.append(currentEntry)
4542+
array.append(withUnsafePointer(to: currentEntry){ origPointer in UpdateFulfillHTLC_clone(origPointer) })
45434543
}
45444544

45454545
if deallocate {
@@ -6949,7 +6949,7 @@ withUnsafePointer(to: Bindings.array_to_tuple32(array: random_seed_bytes)) { (ra
69496949
*/
69506950

69516951
public class func get_ldk_swift_bindings_version() -> String {
6952-
return "3f2c15ddca88239c3ddc57c1e4cf63a02dca5492"
6952+
return "d1e33c2692808b7eaf3ddb4411171f7c82857e4f"
69536953
}
69546954

69556955
}

ci/LDKSwift/Sources/LDKSwift/bindings/structs/ChainMonitor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public init(pointer: LDKChainMonitor, anchor: NativeTypeWrapper){
7373

7474
return Bindings.LDKCVec_BalanceZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChainMonitor>) in
7575
ChainMonitor_get_claimable_balances(this_argPointer, ignored_channelsWrapper.dangle().cOpaqueStruct!)
76-
}, callerContext: "ChainMonitor::get_claimable_balances", deallocate: false)
76+
}, callerContext: "ChainMonitor::get_claimable_balances")
7777

7878
.map { (cOpaqueStruct) in
7979
Balance(pointer: cOpaqueStruct)
@@ -92,7 +92,7 @@ ChainMonitor_get_monitor(this_argPointer, funding_txo.danglingClone().cOpaqueStr
9292

9393
return Bindings.LDKCVec_OutPointZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChainMonitor>) in
9494
ChainMonitor_list_monitors(this_argPointer)
95-
}, callerContext: "ChainMonitor::list_monitors", deallocate: false)
95+
}, callerContext: "ChainMonitor::list_monitors")
9696

9797
.map { (cOpaqueStruct) in
9898
OutPoint(pointer: cOpaqueStruct)

ci/LDKSwift/Sources/LDKSwift/bindings/structs/ChannelManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ ChannelManager_create_channel(this_argPointer, Bindings.new_LDKPublicKey(array:
6666

6767
return Bindings.LDKCVec_ChannelDetailsZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelManager>) in
6868
ChannelManager_list_channels(this_argPointer)
69-
}, callerContext: "ChannelManager::list_channels", deallocate: false)
69+
}, callerContext: "ChannelManager::list_channels")
7070

7171
.map { (cOpaqueStruct) in
7272
ChannelDetails(pointer: cOpaqueStruct)
@@ -78,7 +78,7 @@ ChannelManager_list_channels(this_argPointer)
7878

7979
return Bindings.LDKCVec_ChannelDetailsZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelManager>) in
8080
ChannelManager_list_usable_channels(this_argPointer)
81-
}, callerContext: "ChannelManager::list_usable_channels", deallocate: false)
81+
}, callerContext: "ChannelManager::list_usable_channels")
8282

8383
.map { (cOpaqueStruct) in
8484
ChannelDetails(pointer: cOpaqueStruct)

ci/LDKSwift/Sources/LDKSwift/bindings/structs/ChannelMonitor.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ ChannelMonitor_get_funding_txo(this_argPointer)
8686

8787
return Bindings.LDKCVec_C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelMonitor>) in
8888
ChannelMonitor_get_outputs_to_watch(this_argPointer)
89-
}, callerContext: "ChannelMonitor::get_outputs_to_watch", deallocate: false)
89+
}, callerContext: "ChannelMonitor::get_outputs_to_watch")
9090

9191
.map { (cOpaqueStruct) in
9292
C2Tuple_TxidCVec_C2Tuple_u32ScriptZZZ(pointer: cOpaqueStruct)
@@ -107,7 +107,7 @@ ChannelMonitor_load_outputs_to_watch(this_argPointer, filterPointer)
107107

108108
return Bindings.LDKCVec_MonitorEventZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelMonitor>) in
109109
ChannelMonitor_get_and_clear_pending_monitor_events(this_argPointer)
110-
}, callerContext: "ChannelMonitor::get_and_clear_pending_monitor_events", deallocate: false)
110+
}, callerContext: "ChannelMonitor::get_and_clear_pending_monitor_events")
111111

112112
.map { (cOpaqueStruct) in
113113
MonitorEvent(pointer: cOpaqueStruct)
@@ -119,7 +119,7 @@ ChannelMonitor_get_and_clear_pending_monitor_events(this_argPointer)
119119

120120
return Bindings.LDKCVec_EventZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelMonitor>) in
121121
ChannelMonitor_get_and_clear_pending_events(this_argPointer)
122-
}, callerContext: "ChannelMonitor::get_and_clear_pending_events", deallocate: false)
122+
}, callerContext: "ChannelMonitor::get_and_clear_pending_events")
123123

124124
.map { (cOpaqueStruct) in
125125
Event(pointer: cOpaqueStruct)
@@ -164,7 +164,7 @@ ChannelMonitor_get_latest_holder_commitment_txn(this_argPointer, loggerPointer)
164164
withUnsafePointer(to: Bindings.array_to_tuple80(array: header)) { (headerPointer: UnsafePointer<(UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8)>) in
165165
ChannelMonitor_block_connected(this_argPointer, headerPointer, txdataWrapper.dangle().cOpaqueStruct!, height, broadcaster.activate().cOpaqueStruct!, fee_estimator.activate().cOpaqueStruct!, logger.activate().cOpaqueStruct!)
166166
}
167-
}, callerContext: "ChannelMonitor::block_connected", deallocate: false)
167+
}, callerContext: "ChannelMonitor::block_connected")
168168

169169
.map { (cOpaqueStruct) in
170170
TransactionOutputs(pointer: cOpaqueStruct)
@@ -202,7 +202,7 @@ ChannelMonitor_block_disconnected(this_argPointer, headerPointer, height, broadc
202202
withUnsafePointer(to: Bindings.array_to_tuple80(array: header)) { (headerPointer: UnsafePointer<(UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8)>) in
203203
ChannelMonitor_transactions_confirmed(this_argPointer, headerPointer, txdataWrapper.dangle().cOpaqueStruct!, height, broadcaster.activate().cOpaqueStruct!, fee_estimator.activate().cOpaqueStruct!, logger.activate().cOpaqueStruct!)
204204
}
205-
}, callerContext: "ChannelMonitor::transactions_confirmed", deallocate: false)
205+
}, callerContext: "ChannelMonitor::transactions_confirmed")
206206

207207
.map { (cOpaqueStruct) in
208208
TransactionOutputs(pointer: cOpaqueStruct)
@@ -225,7 +225,7 @@ ChannelMonitor_transaction_unconfirmed(this_argPointer, txidPointer, broadcaster
225225
withUnsafePointer(to: Bindings.array_to_tuple80(array: header)) { (headerPointer: UnsafePointer<(UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8,UInt8)>) in
226226
ChannelMonitor_best_block_updated(this_argPointer, headerPointer, height, broadcaster.activate().cOpaqueStruct!, fee_estimator.activate().cOpaqueStruct!, logger.activate().cOpaqueStruct!)
227227
}
228-
}, callerContext: "ChannelMonitor::best_block_updated", deallocate: false)
228+
}, callerContext: "ChannelMonitor::best_block_updated")
229229

230230
.map { (cOpaqueStruct) in
231231
TransactionOutputs(pointer: cOpaqueStruct)
@@ -251,7 +251,7 @@ ChannelMonitor_current_best_block(this_argPointer)
251251

252252
return Bindings.LDKCVec_BalanceZ_to_array(nativeType: withUnsafePointer(to: self.cOpaqueStruct!) { (this_argPointer: UnsafePointer<LDKChannelMonitor>) in
253253
ChannelMonitor_get_claimable_balances(this_argPointer)
254-
}, callerContext: "ChannelMonitor::get_claimable_balances", deallocate: false)
254+
}, callerContext: "ChannelMonitor::get_claimable_balances")
255255

256256
.map { (cOpaqueStruct) in
257257
Balance(pointer: cOpaqueStruct)

0 commit comments

Comments
 (0)