Skip to content

Commit 48bf688

Browse files
committed
Update to 0.0.14 step 4
1 parent 46e7ffb commit 48bf688

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

bindings/LDK/Bindings.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6057,7 +6057,7 @@ withUnsafePointer(to: scorer.cOpaqueStruct!) { (scorerPointer: UnsafePointer<LDK
60576057
*/
60586058

60596059
public class func get_ldk_swift_bindings_version() -> String {
6060-
return "0e8a8e97affee47cd2c0af734ee76c3bb396663c"
6060+
return "46e7ffb00908db26c46f9c226903baedf93d316c"
60616061
}
60626062

60636063
}

bindings/LDK/traits/Type.swift renamed to bindings/LDK/traits/BindingsType.swift

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
open class Type: NativeTypeWrapper {
3+
open class BindingsType: NativeTypeWrapper {
44

55
private static var instanceCounter: UInt = 0
66
internal let instanceNumber: UInt
@@ -14,19 +14,19 @@ open class Type: NativeTypeWrapper {
1414
/* NATIVE_CALLBACKS_START */
1515

1616
func type_idCallback(pointer: UnsafeRawPointer?) -> UInt16 {
17-
let instance: Type = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "Type.swift::type_id")
17+
let instance: BindingsType = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "BindingsType.swift::type_id")
1818

1919
return instance.type_id()
2020
}
2121

2222
func debug_strCallback(pointer: UnsafeRawPointer?) -> LDKStr {
23-
let instance: Type = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "Type.swift::debug_str")
23+
let instance: BindingsType = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "BindingsType.swift::debug_str")
2424

2525
return Bindings.new_LDKStr(string: instance.debug_str(), chars_is_owned: true)
2626
}
2727

2828
func writeCallback(pointer: UnsafeRawPointer?) -> LDKCVec_u8Z {
29-
let instance: Type = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "Type.swift::write")
29+
let instance: BindingsType = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "BindingsType.swift::write")
3030

3131

3232
let returnWrapper = Bindings.new_LDKCVec_u8ZWrapper(array: instance.write())
@@ -38,7 +38,7 @@ open class Type: NativeTypeWrapper {
3838
}
3939

4040
func freeCallback(pointer: UnsafeMutableRawPointer?) -> Void {
41-
let instance: Type = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "Type.swift::free")
41+
let instance: BindingsType = Bindings.pointerToInstance(pointer: pointer!, sourceMarker: "BindingsType.swift::free")
4242

4343
return instance.free()
4444
}
@@ -93,45 +93,45 @@ open class Type: NativeTypeWrapper {
9393

9494

9595

96-
internal func dangle() -> Type {
96+
internal func dangle() -> BindingsType {
9797
self.dangling = true
9898
return self
9999
}
100100

101101
deinit {
102102
if !self.dangling {
103-
Bindings.print("Freeing Type \(self.instanceNumber).")
103+
Bindings.print("Freeing BindingsType \(self.instanceNumber).")
104104
self.free()
105105
} else {
106-
Bindings.print("Not freeing Type \(self.instanceNumber) due to dangle.")
106+
Bindings.print("Not freeing BindingsType \(self.instanceNumber) due to dangle.")
107107
}
108108
}
109109

110110

111111
open func type_id() -> UInt16 {
112112
/* EDIT ME */
113-
Bindings.print("Type::type_id should be overridden!", severity: .WARNING)
113+
Bindings.print("BindingsType::type_id should be overridden!", severity: .WARNING)
114114

115115
return 0
116116
}
117117

118118
open func debug_str() -> String {
119119
/* EDIT ME */
120-
Bindings.print("Type::debug_str MUST be overridden!", severity: .ERROR)
120+
Bindings.print("BindingsType::debug_str MUST be overridden!", severity: .ERROR)
121121

122122
abort()
123123
}
124124

125125
open func write() -> [UInt8] {
126126
/* EDIT ME */
127-
Bindings.print("Type::write should be overridden!", severity: .WARNING)
127+
Bindings.print("BindingsType::write should be overridden!", severity: .WARNING)
128128

129129
return [UInt8]()
130130
}
131131

132132
open func free() -> Void {
133133
/* EDIT ME */
134-
Bindings.print("Type::free should be overridden!", severity: .WARNING)
134+
Bindings.print("BindingsType::free should be overridden!", severity: .WARNING)
135135

136136

137137
}
@@ -141,7 +141,7 @@ return [UInt8]()
141141
}
142142

143143

144-
public class NativelyImplementedType: Type {
144+
public class NativelyImplementedBindingsType: BindingsType {
145145
/* SWIFT_DEFAULT_CALLBACKS_START */
146146

147147
public override func type_id() -> UInt16 {

0 commit comments

Comments
 (0)