Skip to content

Commit 7686647

Browse files
committed
Update generated code.
1 parent 14ec6fe commit 7686647

File tree

466 files changed

+3771
-1790
lines changed

Some content is hidden

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

466 files changed

+3771
-1790
lines changed

out/Bindings.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
internal private(set) var anchors: Set<NativeTypeWrapper> = []
2828
internal var pointerDebugDescription: String? = nil
2929

30-
@available(*, unavailable, message: "This variable is only available to subclasses.")
31-
public static var enableDeinitLogging = true
32-
3330
init(conflictAvoidingVariableName: UInt, instantiationContext: String) {
3431
Self.globalInstanceCounter += 1
3532
self.globalInstanceNumber = Self.globalInstanceCounter

out/VersionDescriptor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
extension Bindings {
77
public class func getLDKSwiftBindingsSerializationHash() -> String {
8-
return "770510d21a20671a17138990b7c48c9ac3f89bbe8f8a90773ddace4edfdfba0b"
8+
return "658748821a6d2592609e6ebecd7bac57a540d82fb1cf75c12814010e6f95488f"
99
}
1010
public class func getLDKSwiftBindingsVersion() -> String {
11-
return "0.0.114-10-g4ad266ca-dirty"
11+
return "0.0.114-12-g2d08ea22-dirty"
1212
}
1313
public class func getLDKSwiftBindingsCommitHash() -> String {
14-
return "4ad266cad4f24a044f62b5a8b1c5502b08dffb57"
14+
return "2d08ea22d467b53c885f9a6ae0f3f54e57f49020"
1515
}
1616
}
1717

out/enums/complex/APIError.swift

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
public class APIError: NativeTypeWrapper {
1616

1717

18+
public static var enableDeinitLogging = true
19+
public static var suspendFreedom = false
1820
private static var instanceCounter: UInt = 0
1921
internal let instanceNumber: UInt
2022

@@ -416,16 +418,18 @@
416418
}
417419

418420
deinit {
419-
if Bindings.suspendFreedom {
421+
if Bindings.suspendFreedom || Self.suspendFreedom {
420422
return
421423
}
422424

423425
if !self.dangling {
424-
Bindings.print("Freeing APIError \(self.instanceNumber).")
426+
if Self.enableDeinitLogging {
427+
Bindings.print("Freeing APIError \(self.instanceNumber). (Origin: \(self.instantiationContext))")
428+
}
425429

426430
self.free()
427-
} else {
428-
Bindings.print("Not freeing APIError \(self.instanceNumber) due to dangle.")
431+
} else if Self.enableDeinitLogging {
432+
Bindings.print("Not freeing APIError \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
429433
}
430434
}
431435

@@ -442,6 +446,8 @@
442446

443447

444448

449+
public static var enableDeinitLogging = true
450+
public static var suspendFreedom = false
445451
private static var instanceCounter: UInt = 0
446452
internal let instanceNumber: UInt
447453

@@ -500,6 +506,8 @@
500506

501507

502508

509+
public static var enableDeinitLogging = true
510+
public static var suspendFreedom = false
503511
private static var instanceCounter: UInt = 0
504512
internal let instanceNumber: UInt
505513

@@ -566,6 +574,8 @@
566574

567575

568576

577+
public static var enableDeinitLogging = true
578+
public static var suspendFreedom = false
569579
private static var instanceCounter: UInt = 0
570580
internal let instanceNumber: UInt
571581

@@ -624,6 +634,8 @@
624634

625635

626636

637+
public static var enableDeinitLogging = true
638+
public static var suspendFreedom = false
627639
private static var instanceCounter: UInt = 0
628640
internal let instanceNumber: UInt
629641

@@ -682,6 +694,8 @@
682694

683695

684696

697+
public static var enableDeinitLogging = true
698+
public static var suspendFreedom = false
685699
private static var instanceCounter: UInt = 0
686700
internal let instanceNumber: UInt
687701

out/enums/complex/Balance.swift

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
public class Balance: NativeTypeWrapper {
1818

1919

20+
public static var enableDeinitLogging = true
21+
public static var suspendFreedom = false
2022
private static var instanceCounter: UInt = 0
2123
internal let instanceNumber: UInt
2224

@@ -356,16 +358,18 @@
356358
}
357359

358360
deinit {
359-
if Bindings.suspendFreedom {
361+
if Bindings.suspendFreedom || Self.suspendFreedom {
360362
return
361363
}
362364

363365
if !self.dangling {
364-
Bindings.print("Freeing Balance \(self.instanceNumber).")
366+
if Self.enableDeinitLogging {
367+
Bindings.print("Freeing Balance \(self.instanceNumber). (Origin: \(self.instantiationContext))")
368+
}
365369

366370
self.free()
367-
} else {
368-
Bindings.print("Not freeing Balance \(self.instanceNumber) due to dangle.")
371+
} else if Self.enableDeinitLogging {
372+
Bindings.print("Not freeing Balance \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
369373
}
370374
}
371375

@@ -382,6 +386,8 @@
382386

383387

384388

389+
public static var enableDeinitLogging = true
390+
public static var suspendFreedom = false
385391
private static var instanceCounter: UInt = 0
386392
internal let instanceNumber: UInt
387393

@@ -441,6 +447,8 @@
441447

442448

443449

450+
public static var enableDeinitLogging = true
451+
public static var suspendFreedom = false
444452
private static var instanceCounter: UInt = 0
445453
internal let instanceNumber: UInt
446454

@@ -509,6 +517,8 @@
509517

510518

511519

520+
public static var enableDeinitLogging = true
521+
public static var suspendFreedom = false
512522
private static var instanceCounter: UInt = 0
513523
internal let instanceNumber: UInt
514524

@@ -577,6 +587,8 @@
577587

578588

579589

590+
public static var enableDeinitLogging = true
591+
public static var suspendFreedom = false
580592
private static var instanceCounter: UInt = 0
581593
internal let instanceNumber: UInt
582594

@@ -645,6 +657,8 @@
645657

646658

647659

660+
public static var enableDeinitLogging = true
661+
public static var suspendFreedom = false
648662
private static var instanceCounter: UInt = 0
649663
internal let instanceNumber: UInt
650664

@@ -713,6 +727,8 @@
713727

714728

715729

730+
public static var enableDeinitLogging = true
731+
public static var suspendFreedom = false
716732
private static var instanceCounter: UInt = 0
717733
internal let instanceNumber: UInt
718734

out/enums/complex/Bech32Error.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
public class Bech32Error: NativeTypeWrapper {
1515

1616

17+
public static var enableDeinitLogging = true
18+
public static var suspendFreedom = false
1719
private static var instanceCounter: UInt = 0
1820
internal let instanceNumber: UInt
1921

@@ -168,16 +170,18 @@
168170
}
169171

170172
deinit {
171-
if Bindings.suspendFreedom {
173+
if Bindings.suspendFreedom || Self.suspendFreedom {
172174
return
173175
}
174176

175177
if !self.dangling {
176-
Bindings.print("Freeing Bech32Error \(self.instanceNumber).")
178+
if Self.enableDeinitLogging {
179+
Bindings.print("Freeing Bech32Error \(self.instanceNumber). (Origin: \(self.instantiationContext))")
180+
}
177181

178182
self.free()
179-
} else {
180-
Bindings.print("Not freeing Bech32Error \(self.instanceNumber) due to dangle.")
183+
} else if Self.enableDeinitLogging {
184+
Bindings.print("Not freeing Bech32Error \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
181185
}
182186
}
183187

out/enums/complex/ClosureReason.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
public class ClosureReason: NativeTypeWrapper {
1515

1616

17+
public static var enableDeinitLogging = true
18+
public static var suspendFreedom = false
1719
private static var instanceCounter: UInt = 0
1820
internal let instanceNumber: UInt
1921

@@ -432,16 +434,18 @@
432434
}
433435

434436
deinit {
435-
if Bindings.suspendFreedom {
437+
if Bindings.suspendFreedom || Self.suspendFreedom {
436438
return
437439
}
438440

439441
if !self.dangling {
440-
Bindings.print("Freeing ClosureReason \(self.instanceNumber).")
442+
if Self.enableDeinitLogging {
443+
Bindings.print("Freeing ClosureReason \(self.instanceNumber). (Origin: \(self.instantiationContext))")
444+
}
441445

442446
self.free()
443-
} else {
444-
Bindings.print("Not freeing ClosureReason \(self.instanceNumber) due to dangle.")
447+
} else if Self.enableDeinitLogging {
448+
Bindings.print("Not freeing ClosureReason \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
445449
}
446450
}
447451

@@ -458,6 +462,8 @@
458462

459463

460464

465+
public static var enableDeinitLogging = true
466+
public static var suspendFreedom = false
461467
private static var instanceCounter: UInt = 0
462468
internal let instanceNumber: UInt
463469

@@ -520,6 +526,8 @@
520526

521527

522528

529+
public static var enableDeinitLogging = true
530+
public static var suspendFreedom = false
523531
private static var instanceCounter: UInt = 0
524532
internal let instanceNumber: UInt
525533

out/enums/complex/DecodeError.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
public class DecodeError: NativeTypeWrapper {
1515

1616

17+
public static var enableDeinitLogging = true
18+
public static var suspendFreedom = false
1719
private static var instanceCounter: UInt = 0
1820
internal let instanceNumber: UInt
1921

@@ -327,16 +329,18 @@
327329
}
328330

329331
deinit {
330-
if Bindings.suspendFreedom {
332+
if Bindings.suspendFreedom || Self.suspendFreedom {
331333
return
332334
}
333335

334336
if !self.dangling {
335-
Bindings.print("Freeing DecodeError \(self.instanceNumber).")
337+
if Self.enableDeinitLogging {
338+
Bindings.print("Freeing DecodeError \(self.instanceNumber). (Origin: \(self.instantiationContext))")
339+
}
336340

337341
self.free()
338-
} else {
339-
Bindings.print("Not freeing DecodeError \(self.instanceNumber) due to dangle.")
342+
} else if Self.enableDeinitLogging {
343+
Bindings.print("Not freeing DecodeError \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
340344
}
341345
}
342346

out/enums/complex/Destination.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
public class Destination: NativeTypeWrapper {
1515

1616

17+
public static var enableDeinitLogging = true
18+
public static var suspendFreedom = false
1719
private static var instanceCounter: UInt = 0
1820
internal let instanceNumber: UInt
1921

@@ -181,16 +183,18 @@
181183
}
182184

183185
deinit {
184-
if Bindings.suspendFreedom {
186+
if Bindings.suspendFreedom || Self.suspendFreedom {
185187
return
186188
}
187189

188190
if !self.dangling {
189-
Bindings.print("Freeing Destination \(self.instanceNumber).")
191+
if Self.enableDeinitLogging {
192+
Bindings.print("Freeing Destination \(self.instanceNumber). (Origin: \(self.instantiationContext))")
193+
}
190194

191195
self.free()
192-
} else {
193-
Bindings.print("Not freeing Destination \(self.instanceNumber) due to dangle.")
196+
} else if Self.enableDeinitLogging {
197+
Bindings.print("Not freeing Destination \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
194198
}
195199
}
196200

out/enums/complex/EffectiveCapacity.swift

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
public class EffectiveCapacity: NativeTypeWrapper {
1818

1919

20+
public static var enableDeinitLogging = true
21+
public static var suspendFreedom = false
2022
private static var instanceCounter: UInt = 0
2123
internal let instanceNumber: UInt
2224

@@ -288,16 +290,18 @@
288290
}
289291

290292
deinit {
291-
if Bindings.suspendFreedom {
293+
if Bindings.suspendFreedom || Self.suspendFreedom {
292294
return
293295
}
294296

295297
if !self.dangling {
296-
Bindings.print("Freeing EffectiveCapacity \(self.instanceNumber).")
298+
if Self.enableDeinitLogging {
299+
Bindings.print("Freeing EffectiveCapacity \(self.instanceNumber). (Origin: \(self.instantiationContext))")
300+
}
297301

298302
self.free()
299-
} else {
300-
Bindings.print("Not freeing EffectiveCapacity \(self.instanceNumber) due to dangle.")
303+
} else if Self.enableDeinitLogging {
304+
Bindings.print("Not freeing EffectiveCapacity \(self.instanceNumber) due to dangle. (Origin: \(self.instantiationContext))")
301305
}
302306
}
303307

@@ -314,6 +318,8 @@
314318

315319

316320

321+
public static var enableDeinitLogging = true
322+
public static var suspendFreedom = false
317323
private static var instanceCounter: UInt = 0
318324
internal let instanceNumber: UInt
319325

@@ -373,6 +379,8 @@
373379

374380

375381

382+
public static var enableDeinitLogging = true
383+
public static var suspendFreedom = false
376384
private static var instanceCounter: UInt = 0
377385
internal let instanceNumber: UInt
378386

@@ -431,6 +439,8 @@
431439

432440

433441

442+
public static var enableDeinitLogging = true
443+
public static var suspendFreedom = false
434444
private static var instanceCounter: UInt = 0
435445
internal let instanceNumber: UInt
436446

0 commit comments

Comments
 (0)