Skip to content

Commit 3f2c15d

Browse files
committed
Dangle all wrapper objects created for raw accessed properties.
1 parent 999dff8 commit 3f2c15d

File tree

156 files changed

+319
-315
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+319
-315
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 "bfac3427456fcff806561ab715683ca237f395ed"
6952+
return "999dff8638d6c9595c4a0fd8ed416be234374d51"
69536953
}
69546954

69556955
}

ci/LDKSwift/Sources/LDKSwift/bindings/options/APIError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ APIError_eq(aPointer, bPointer)
291291

292292

293293
public func getScript() -> Bindings.ShutdownScript {
294-
return Bindings.ShutdownScript(pointer: self.cOpaqueStruct!.script, anchor: self)
294+
return Bindings.ShutdownScript(pointer: self.cOpaqueStruct!.script, anchor: self).dangle()
295295
}
296296

297297

ci/LDKSwift/Sources/LDKSwift/bindings/options/Destination.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extension Bindings {
6161
if self.cOpaqueStruct?.tag != LDKDestination_BlindedRoute {
6262
return nil
6363
}
64-
return Bindings.BlindedRoute(pointer: self.cOpaqueStruct!.blinded_route, anchor: self)
64+
return Bindings.BlindedRoute(pointer: self.cOpaqueStruct!.blinded_route, anchor: self).dangle()
6565
}
6666

6767

ci/LDKSwift/Sources/LDKSwift/bindings/options/EffectiveCapacity.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ EffectiveCapacity_as_msat(this_argPointer)
216216
}
217217

218218
public func getHtlc_maximum_msat() -> Bindings.Option_u64Z {
219-
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.htlc_maximum_msat, anchor: self)
219+
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.htlc_maximum_msat, anchor: self).dangle()
220220
}
221221

222222

ci/LDKSwift/Sources/LDKSwift/bindings/options/ErrorAction.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ ErrorAction_clone(origPointer)
169169

170170

171171
public func getMsg() -> Bindings.ErrorMessage {
172-
return Bindings.ErrorMessage(pointer: self.cOpaqueStruct!.msg, anchor: self)
172+
return Bindings.ErrorMessage(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
173173
}
174174

175175

@@ -194,7 +194,7 @@ ErrorAction_clone(origPointer)
194194

195195

196196
public func getMsg() -> Bindings.ErrorMessage {
197-
return Bindings.ErrorMessage(pointer: self.cOpaqueStruct!.msg, anchor: self)
197+
return Bindings.ErrorMessage(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
198198
}
199199

200200

@@ -219,7 +219,7 @@ ErrorAction_clone(origPointer)
219219

220220

221221
public func getMsg() -> Bindings.WarningMessage {
222-
return Bindings.WarningMessage(pointer: self.cOpaqueStruct!.msg, anchor: self)
222+
return Bindings.WarningMessage(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
223223
}
224224

225225
public func getLog_level() -> LDKLevel {

ci/LDKSwift/Sources/LDKSwift/bindings/options/Event.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ Event_write(objPointer)
453453
}
454454

455455
public func getPurpose() -> Bindings.PaymentPurpose {
456-
return Bindings.PaymentPurpose(pointer: self.cOpaqueStruct!.purpose, anchor: self)
456+
return Bindings.PaymentPurpose(pointer: self.cOpaqueStruct!.purpose, anchor: self).dangle()
457457
}
458458

459459

@@ -486,7 +486,7 @@ Event_write(objPointer)
486486
}
487487

488488
public func getPurpose() -> Bindings.PaymentPurpose {
489-
return Bindings.PaymentPurpose(pointer: self.cOpaqueStruct!.purpose, anchor: self)
489+
return Bindings.PaymentPurpose(pointer: self.cOpaqueStruct!.purpose, anchor: self).dangle()
490490
}
491491

492492

@@ -523,7 +523,7 @@ Event_write(objPointer)
523523
}
524524

525525
public func getFee_paid_msat() -> Bindings.Option_u64Z {
526-
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.fee_paid_msat, anchor: self)
526+
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.fee_paid_msat, anchor: self).dangle()
527527
}
528528

529529

@@ -627,7 +627,7 @@ Event_write(objPointer)
627627
}
628628

629629
public func getNetwork_update() -> Bindings.Option_NetworkUpdateZ {
630-
return Bindings.Option_NetworkUpdateZ(pointer: self.cOpaqueStruct!.network_update, anchor: self)
630+
return Bindings.Option_NetworkUpdateZ(pointer: self.cOpaqueStruct!.network_update, anchor: self).dangle()
631631
}
632632

633633
public func getAll_paths_failed() -> Bool {
@@ -644,11 +644,11 @@ Event_write(objPointer)
644644
}
645645

646646
public func getShort_channel_id() -> Bindings.Option_u64Z {
647-
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.short_channel_id, anchor: self)
647+
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.short_channel_id, anchor: self).dangle()
648648
}
649649

650650
public func getRetry() -> Bindings.RouteParameters {
651-
return Bindings.RouteParameters(pointer: self.cOpaqueStruct!.retry, anchor: self)
651+
return Bindings.RouteParameters(pointer: self.cOpaqueStruct!.retry, anchor: self).dangle()
652652
}
653653

654654

@@ -728,7 +728,7 @@ Event_write(objPointer)
728728
}
729729

730730
public func getShort_channel_id() -> Bindings.Option_u64Z {
731-
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.short_channel_id, anchor: self)
731+
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.short_channel_id, anchor: self).dangle()
732732
}
733733

734734

@@ -816,7 +816,7 @@ Event_write(objPointer)
816816
}
817817

818818
public func getFee_earned_msat() -> Bindings.Option_u64Z {
819-
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.fee_earned_msat, anchor: self)
819+
return Bindings.Option_u64Z(pointer: self.cOpaqueStruct!.fee_earned_msat, anchor: self).dangle()
820820
}
821821

822822
public func getClaim_from_onchain_tx() -> Bool {
@@ -853,7 +853,7 @@ Event_write(objPointer)
853853
}
854854

855855
public func getReason() -> Bindings.ClosureReason {
856-
return Bindings.ClosureReason(pointer: self.cOpaqueStruct!.reason, anchor: self)
856+
return Bindings.ClosureReason(pointer: self.cOpaqueStruct!.reason, anchor: self).dangle()
857857
}
858858

859859

@@ -923,7 +923,7 @@ Event_write(objPointer)
923923
}
924924

925925
public func getChannel_type() -> Bindings.ChannelTypeFeatures {
926-
return Bindings.ChannelTypeFeatures(pointer: self.cOpaqueStruct!.channel_type, anchor: self)
926+
return Bindings.ChannelTypeFeatures(pointer: self.cOpaqueStruct!.channel_type, anchor: self).dangle()
927927
}
928928

929929

@@ -952,7 +952,7 @@ Event_write(objPointer)
952952
}
953953

954954
public func getFailed_next_destination() -> Bindings.HTLCDestination {
955-
return Bindings.HTLCDestination(pointer: self.cOpaqueStruct!.failed_next_destination, anchor: self)
955+
return Bindings.HTLCDestination(pointer: self.cOpaqueStruct!.failed_next_destination, anchor: self).dangle()
956956
}
957957

958958

ci/LDKSwift/Sources/LDKSwift/bindings/options/GossipSync.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ extension Bindings {
5454
if self.cOpaqueStruct?.tag != LDKGossipSync_P2P {
5555
return nil
5656
}
57-
return Bindings.P2PGossipSync(pointer: self.cOpaqueStruct!.p2p, anchor: self)
57+
return Bindings.P2PGossipSync(pointer: self.cOpaqueStruct!.p2p, anchor: self).dangle()
5858
}
5959

6060
public func getValueAsRapid() -> Bindings.RapidGossipSync? {
6161
if self.cOpaqueStruct?.tag != LDKGossipSync_Rapid {
6262
return nil
6363
}
64-
return Bindings.RapidGossipSync(pointer: self.cOpaqueStruct!.rapid, anchor: self)
64+
return Bindings.RapidGossipSync(pointer: self.cOpaqueStruct!.rapid, anchor: self).dangle()
6565
}
6666

6767

ci/LDKSwift/Sources/LDKSwift/bindings/options/GraphSyncError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ extension Bindings {
5454
if self.cOpaqueStruct?.tag != LDKGraphSyncError_DecodeError {
5555
return nil
5656
}
57-
return Bindings.DecodeError(pointer: self.cOpaqueStruct!.decode_error, anchor: self)
57+
return Bindings.DecodeError(pointer: self.cOpaqueStruct!.decode_error, anchor: self).dangle()
5858
}
5959

6060
public func getValueAsLightningError() -> Bindings.LightningError? {
6161
if self.cOpaqueStruct?.tag != LDKGraphSyncError_LightningError {
6262
return nil
6363
}
64-
return Bindings.LightningError(pointer: self.cOpaqueStruct!.lightning_error, anchor: self)
64+
return Bindings.LightningError(pointer: self.cOpaqueStruct!.lightning_error, anchor: self).dangle()
6565
}
6666

6767

ci/LDKSwift/Sources/LDKSwift/bindings/options/MessageSendEvent.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ MessageSendEvent_clone(origPointer)
387387
}
388388

389389
public func getMsg() -> Bindings.AcceptChannel {
390-
return Bindings.AcceptChannel(pointer: self.cOpaqueStruct!.msg, anchor: self)
390+
return Bindings.AcceptChannel(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
391391
}
392392

393393

@@ -416,7 +416,7 @@ MessageSendEvent_clone(origPointer)
416416
}
417417

418418
public func getMsg() -> Bindings.OpenChannel {
419-
return Bindings.OpenChannel(pointer: self.cOpaqueStruct!.msg, anchor: self)
419+
return Bindings.OpenChannel(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
420420
}
421421

422422

@@ -445,7 +445,7 @@ MessageSendEvent_clone(origPointer)
445445
}
446446

447447
public func getMsg() -> Bindings.FundingCreated {
448-
return Bindings.FundingCreated(pointer: self.cOpaqueStruct!.msg, anchor: self)
448+
return Bindings.FundingCreated(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
449449
}
450450

451451

@@ -474,7 +474,7 @@ MessageSendEvent_clone(origPointer)
474474
}
475475

476476
public func getMsg() -> Bindings.FundingSigned {
477-
return Bindings.FundingSigned(pointer: self.cOpaqueStruct!.msg, anchor: self)
477+
return Bindings.FundingSigned(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
478478
}
479479

480480

@@ -503,7 +503,7 @@ MessageSendEvent_clone(origPointer)
503503
}
504504

505505
public func getMsg() -> Bindings.ChannelReady {
506-
return Bindings.ChannelReady(pointer: self.cOpaqueStruct!.msg, anchor: self)
506+
return Bindings.ChannelReady(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
507507
}
508508

509509

@@ -532,7 +532,7 @@ MessageSendEvent_clone(origPointer)
532532
}
533533

534534
public func getMsg() -> Bindings.AnnouncementSignatures {
535-
return Bindings.AnnouncementSignatures(pointer: self.cOpaqueStruct!.msg, anchor: self)
535+
return Bindings.AnnouncementSignatures(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
536536
}
537537

538538

@@ -561,7 +561,7 @@ MessageSendEvent_clone(origPointer)
561561
}
562562

563563
public func getUpdates() -> Bindings.CommitmentUpdate {
564-
return Bindings.CommitmentUpdate(pointer: self.cOpaqueStruct!.updates, anchor: self)
564+
return Bindings.CommitmentUpdate(pointer: self.cOpaqueStruct!.updates, anchor: self).dangle()
565565
}
566566

567567

@@ -590,7 +590,7 @@ MessageSendEvent_clone(origPointer)
590590
}
591591

592592
public func getMsg() -> Bindings.RevokeAndACK {
593-
return Bindings.RevokeAndACK(pointer: self.cOpaqueStruct!.msg, anchor: self)
593+
return Bindings.RevokeAndACK(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
594594
}
595595

596596

@@ -619,7 +619,7 @@ MessageSendEvent_clone(origPointer)
619619
}
620620

621621
public func getMsg() -> Bindings.ClosingSigned {
622-
return Bindings.ClosingSigned(pointer: self.cOpaqueStruct!.msg, anchor: self)
622+
return Bindings.ClosingSigned(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
623623
}
624624

625625

@@ -648,7 +648,7 @@ MessageSendEvent_clone(origPointer)
648648
}
649649

650650
public func getMsg() -> Bindings.Shutdown {
651-
return Bindings.Shutdown(pointer: self.cOpaqueStruct!.msg, anchor: self)
651+
return Bindings.Shutdown(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
652652
}
653653

654654

@@ -677,7 +677,7 @@ MessageSendEvent_clone(origPointer)
677677
}
678678

679679
public func getMsg() -> Bindings.ChannelReestablish {
680-
return Bindings.ChannelReestablish(pointer: self.cOpaqueStruct!.msg, anchor: self)
680+
return Bindings.ChannelReestablish(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
681681
}
682682

683683

@@ -706,11 +706,11 @@ MessageSendEvent_clone(origPointer)
706706
}
707707

708708
public func getMsg() -> Bindings.ChannelAnnouncement {
709-
return Bindings.ChannelAnnouncement(pointer: self.cOpaqueStruct!.msg, anchor: self)
709+
return Bindings.ChannelAnnouncement(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
710710
}
711711

712712
public func getUpdate_msg() -> Bindings.ChannelUpdate {
713-
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.update_msg, anchor: self)
713+
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.update_msg, anchor: self).dangle()
714714
}
715715

716716

@@ -735,11 +735,11 @@ MessageSendEvent_clone(origPointer)
735735

736736

737737
public func getMsg() -> Bindings.ChannelAnnouncement {
738-
return Bindings.ChannelAnnouncement(pointer: self.cOpaqueStruct!.msg, anchor: self)
738+
return Bindings.ChannelAnnouncement(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
739739
}
740740

741741
public func getUpdate_msg() -> Bindings.ChannelUpdate {
742-
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.update_msg, anchor: self)
742+
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.update_msg, anchor: self).dangle()
743743
}
744744

745745

@@ -764,7 +764,7 @@ MessageSendEvent_clone(origPointer)
764764

765765

766766
public func getMsg() -> Bindings.ChannelUpdate {
767-
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.msg, anchor: self)
767+
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
768768
}
769769

770770

@@ -793,7 +793,7 @@ MessageSendEvent_clone(origPointer)
793793
}
794794

795795
public func getMsg() -> Bindings.ChannelUpdate {
796-
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.msg, anchor: self)
796+
return Bindings.ChannelUpdate(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
797797
}
798798

799799

@@ -822,7 +822,7 @@ MessageSendEvent_clone(origPointer)
822822
}
823823

824824
public func getAction() -> Bindings.ErrorAction {
825-
return Bindings.ErrorAction(pointer: self.cOpaqueStruct!.action, anchor: self)
825+
return Bindings.ErrorAction(pointer: self.cOpaqueStruct!.action, anchor: self).dangle()
826826
}
827827

828828

@@ -851,7 +851,7 @@ MessageSendEvent_clone(origPointer)
851851
}
852852

853853
public func getMsg() -> Bindings.QueryChannelRange {
854-
return Bindings.QueryChannelRange(pointer: self.cOpaqueStruct!.msg, anchor: self)
854+
return Bindings.QueryChannelRange(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
855855
}
856856

857857

@@ -880,7 +880,7 @@ MessageSendEvent_clone(origPointer)
880880
}
881881

882882
public func getMsg() -> Bindings.QueryShortChannelIds {
883-
return Bindings.QueryShortChannelIds(pointer: self.cOpaqueStruct!.msg, anchor: self)
883+
return Bindings.QueryShortChannelIds(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
884884
}
885885

886886

@@ -909,7 +909,7 @@ MessageSendEvent_clone(origPointer)
909909
}
910910

911911
public func getMsg() -> Bindings.ReplyChannelRange {
912-
return Bindings.ReplyChannelRange(pointer: self.cOpaqueStruct!.msg, anchor: self)
912+
return Bindings.ReplyChannelRange(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
913913
}
914914

915915

@@ -938,7 +938,7 @@ MessageSendEvent_clone(origPointer)
938938
}
939939

940940
public func getMsg() -> Bindings.GossipTimestampFilter {
941-
return Bindings.GossipTimestampFilter(pointer: self.cOpaqueStruct!.msg, anchor: self)
941+
return Bindings.GossipTimestampFilter(pointer: self.cOpaqueStruct!.msg, anchor: self).dangle()
942942
}
943943

944944

0 commit comments

Comments
 (0)