[KLIB tool] Update Kotlin/Native C-interop tests
^KT-62340
This commit is contained in:
committed by
Space Team
parent
07767f88e2
commit
ab814e1600
+70
-20
@@ -1,29 +1,79 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@ExperimentalForeignApi enum class E1 private constructor(value: UInt) : Enum<E1>, CEnum {
|
||||
@ConstantValue.UInt(value = 0.toUInt()) enum entry ONE
|
||||
@ConstantValue.UInt(value = 1.toUInt()) enum entry TWO
|
||||
@ConstantValue.UInt(value = 2.toUInt()) enum entry THREE
|
||||
override val value: UInt
|
||||
// class name: dependency/E1
|
||||
// class name: dependency/E1.Companion
|
||||
// class name: dependency/E1.Var
|
||||
// class name: dependency/E1.Var.Companion
|
||||
|
||||
class Var constructor(rawPtr: NativePtr /* = NativePtr */) : CEnumVar {
|
||||
var value: E1
|
||||
@CEnumVarTypeSize(size = 4) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CPrimitiveVar.Type
|
||||
}
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final enum class dependency/E1 : kotlin/Enum<dependency/E1>, kotlinx/cinterop/CEnum {
|
||||
|
||||
companion object {
|
||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Will be removed.", replaceWith = ReplaceWith(expression = "", imports = {})) fun byValue(value: UInt): E1
|
||||
}
|
||||
private constructor(value: kotlin/UInt)
|
||||
|
||||
public open val value: kotlin/UInt
|
||||
public open /* non-default */ get
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Var
|
||||
|
||||
// nested class: Companion
|
||||
|
||||
@kotlinx/cinterop/internal/ConstantValue.UInt(value = 0u)
|
||||
ONE,
|
||||
|
||||
@kotlinx/cinterop/internal/ConstantValue.UInt(value = 1u)
|
||||
TWO,
|
||||
|
||||
@kotlinx/cinterop/internal/ConstantValue.UInt(value = 2u)
|
||||
THREE,
|
||||
}
|
||||
|
||||
}
|
||||
public final companion object dependency/E1.Companion {
|
||||
|
||||
package dependency {
|
||||
@ExperimentalForeignApi typealias E2 = UInt
|
||||
@ExperimentalForeignApi typealias E2Var = UIntVarOf<E2 /* = UInt */>
|
||||
@ExperimentalForeignApi const val EIGHT: E2 /* = UInt */ = 8.toUInt()
|
||||
@ExperimentalForeignApi const val FOUR: E2 /* = UInt */ = 4.toUInt()
|
||||
}
|
||||
private constructor()
|
||||
|
||||
@kotlin/Deprecated(message = "Will be removed.", replaceWith = kotlin/ReplaceWith(imports = [], expression = ""), level = kotlin/DeprecationLevel.WARNING)
|
||||
public final fun byValue(value: kotlin/UInt): dependency/E1
|
||||
}
|
||||
|
||||
public final class dependency/E1.Var : kotlinx/cinterop/CEnumVar {
|
||||
|
||||
public constructor(rawPtr: kotlin/native/internal/NativePtr /* = kotlinx/cinterop/NativePtr^ */)
|
||||
|
||||
public final var value: dependency/E1
|
||||
public final /* non-default */ external get
|
||||
public final /* non-default */ external set(value: dependency/E1)
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
|
||||
@kotlinx/cinterop/internal/CEnumVarTypeSize(size = 4)
|
||||
@kotlin/Deprecated(message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = kotlin/ReplaceWith(imports = [], expression = ""), level = kotlin/DeprecationLevel.WARNING)
|
||||
public final companion object dependency/E1.Var.Companion : kotlinx/cinterop/CPrimitiveVar.Type {
|
||||
|
||||
private constructor()
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final const val EIGHT: kotlin/UInt /* = dependency/E2^ */ /* = 8u */
|
||||
public final get
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final const val FOUR: kotlin/UInt /* = dependency/E2^ */ /* = 4u */
|
||||
public final get
|
||||
|
||||
public typealias E2 = kotlin/UInt /* = kotlin/UInt */
|
||||
|
||||
public typealias E2Var = kotlinx/cinterop/UIntVarOf<dependency/E2^> /* = kotlinx/cinterop/UIntVarOf<kotlin/UInt /* = dependency/E2^ */> */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+16
-4
@@ -1,6 +1,18 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
@CCall(id = "knifunptr_dependency1_bar") @ExperimentalForeignApi external fun bar()
|
||||
@CCall(id = "knifunptr_dependency0_foo") @ExperimentalForeignApi external fun foo()
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
package {
|
||||
|
||||
@kotlinx/cinterop/internal/CCall(id = "knifunptr_dependency1_bar")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun bar(): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/internal/CCall(id = "knifunptr_dependency0_foo")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun foo(): kotlin/Unit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+28
-9
@@ -1,11 +1,30 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
@ExperimentalForeignApi const val MACRO_CONST_GLOBAL: Int = 1
|
||||
@ExperimentalForeignApi val MACRO_GLOBAL: Int
|
||||
@CCall(id = "knifunptr_dependency3_MACRO_GLOBAL_getter") get
|
||||
@CCall(id = "knifunptr_dependency0_getValue") @ExperimentalForeignApi external fun getValue(): Int
|
||||
@ExperimentalForeignApi var global: Int
|
||||
@CCall(id = "knifunptr_dependency1_global_getter") get
|
||||
@CCall(id = "knifunptr_dependency2_global_setter") set
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
package {
|
||||
|
||||
@kotlinx/cinterop/internal/CCall(id = "knifunptr_dependency0_getValue")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun getValue(): kotlin/Int
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final const val MACRO_CONST_GLOBAL: kotlin/Int /* = 1 */
|
||||
public final get
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final val MACRO_GLOBAL: kotlin/Int
|
||||
@kotlinx/cinterop/internal/CCall(id = "knifunptr_dependency3_MACRO_GLOBAL_getter")
|
||||
public final /* non-default */ external get
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final var global: kotlin/Int
|
||||
@kotlinx/cinterop/internal/CCall(id = "knifunptr_dependency1_global_getter")
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/internal/CCall(id = "knifunptr_dependency2_global_setter")
|
||||
public final /* non-default */ external set(value: kotlin/Int)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+80
-23
@@ -1,31 +1,88 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@ExternalObjCClass @ExperimentalForeignApi open class MyClass : ObjCObjectBase {
|
||||
protected constructor()
|
||||
companion object : MyClassMeta, ObjCClassOf<MyClass>
|
||||
// class name: dependency/MyClass
|
||||
// class name: dependency/MyClass.Companion
|
||||
// class name: dependency/MyClassMeta
|
||||
|
||||
@kotlinx/cinterop/ExternalObjCClass
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public open class dependency/MyClass : kotlinx/cinterop/ObjCObjectBase {
|
||||
|
||||
protected /* secondary */ constructor()
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
|
||||
@ExternalObjCClass @ExperimentalForeignApi open class MyClassMeta : ObjCObjectBaseMeta {
|
||||
protected constructor()
|
||||
public final companion object dependency/MyClass.Companion : dependency/MyClassMeta, kotlinx/cinterop/ObjCClassOf<dependency/MyClass> {
|
||||
|
||||
private constructor()
|
||||
}
|
||||
|
||||
}
|
||||
@kotlinx/cinterop/ExternalObjCClass
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public open class dependency/MyClassMeta : kotlinx/cinterop/ObjCObjectBaseMeta {
|
||||
|
||||
package dependency {
|
||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "classMethod") @ExperimentalForeignApi external fun MyClassMeta.classMethod()
|
||||
@ExperimentalForeignApi var MyClassMeta.classProperty: Any?
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "classProperty") get
|
||||
@ObjCMethod(encoding = "v24@0:8@16", isStret = false, selector = "setClassProperty:") set
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "classProperty") @ExperimentalForeignApi external fun MyClassMeta.classProperty(): Any?
|
||||
@ObjCFactory(encoding = "@16@0:8", isStret = false, selector = "init") @CCall.ConsumesReceiver @CCall.ReturnsRetained @ExperimentalForeignApi external fun <T : MyClass> ObjCClassOf<T>.create(): T?
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use factory method instead", replaceWith = ReplaceWith(expression = "MyClass.create()", imports = {})) @ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "init") @CCall.ConsumesReceiver @CCall.ReturnsRetained @ExperimentalForeignApi external fun MyClass.init(): MyClass?
|
||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "instanceMethod") @ExperimentalForeignApi external fun MyClass.instanceMethod()
|
||||
@ExperimentalForeignApi var MyClass.instanceProperty: Int
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "instanceProperty") get
|
||||
@ObjCMethod(encoding = "v20@0:8i16", isStret = false, selector = "setInstanceProperty:") set
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "instanceProperty") @ExperimentalForeignApi external fun MyClass.instanceProperty(): Int
|
||||
@ObjCMethod(encoding = "v24@0:8@16", isStret = false, selector = "setClassProperty:") @ExperimentalForeignApi external fun MyClassMeta.setClassProperty(classProperty: Any?)
|
||||
@ObjCMethod(encoding = "v20@0:8i16", isStret = false, selector = "setInstanceProperty:") @ExperimentalForeignApi external fun MyClass.setInstanceProperty(instanceProperty: Int)
|
||||
}
|
||||
protected /* secondary */ constructor()
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classMethod", encoding = "v16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClassMeta.classMethod(): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classProperty", encoding = "@16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClassMeta.classProperty(): kotlin/Any?
|
||||
|
||||
@kotlinx/cinterop/ObjCFactory(selector = "init", encoding = "@16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/internal/CCall.ConsumesReceiver
|
||||
@kotlinx/cinterop/internal/CCall.ReturnsRetained
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun <T#0 /* T */ : dependency/MyClass> kotlinx/cinterop/ObjCClassOf<T#0>.create(): T#0?
|
||||
|
||||
@kotlin/Deprecated(message = "Use factory method instead", replaceWith = kotlin/ReplaceWith(imports = [], expression = "MyClass.create()"), level = kotlin/DeprecationLevel.ERROR)
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "init", encoding = "@16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/internal/CCall.ConsumesReceiver
|
||||
@kotlinx/cinterop/internal/CCall.ReturnsRetained
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClass.init(): dependency/MyClass?
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceMethod", encoding = "v16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClass.instanceMethod(): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceProperty", encoding = "i16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClass.instanceProperty(): kotlin/Int
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setClassProperty:", encoding = "v24@0:8@16", isStret = false)
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClassMeta.setClassProperty(classProperty: kotlin/Any?): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setInstanceProperty:", encoding = "v20@0:8i16", isStret = false)
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final external fun dependency/MyClass.setInstanceProperty(instanceProperty: kotlin/Int): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final var dependency/MyClassMeta.classProperty: kotlin/Any?
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classProperty", encoding = "@16@0:8", isStret = false)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setClassProperty:", encoding = "v24@0:8@16", isStret = false)
|
||||
public final /* non-default */ external set(value: kotlin/Any?)
|
||||
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final var dependency/MyClass.instanceProperty: kotlin/Int
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceProperty", encoding = "i16@0:8", isStret = false)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setInstanceProperty:", encoding = "v20@0:8i16", isStret = false)
|
||||
public final /* non-default */ external set(value: kotlin/Int)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+64
-20
@@ -1,27 +1,71 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@ExternalObjCClass @ExperimentalForeignApi open class MyClass : ObjCObjectBase {
|
||||
@ObjCConstructor(designated = true, initSelector = "init") constructor()
|
||||
var instanceProperty: Int
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "instanceProperty") get
|
||||
@ObjCMethod(encoding = "v20@0:8i16", isStret = false, selector = "setInstanceProperty:") set
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use constructor instead", replaceWith = ReplaceWith(expression = "MyClass()", imports = {})) @ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "init") @CCall.ConsumesReceiver @CCall.ReturnsRetained open external fun init(): MyClass?
|
||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "instanceMethod") open external fun instanceMethod()
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "instanceProperty") open external fun instanceProperty(): Int
|
||||
@ObjCMethod(encoding = "v20@0:8i16", isStret = false, selector = "setInstanceProperty:") open external fun setInstanceProperty(instanceProperty: Int)
|
||||
companion object : MyClassMeta, ObjCClassOf<MyClass>
|
||||
// class name: dependency/MyClass
|
||||
// class name: dependency/MyClass.Companion
|
||||
// class name: dependency/MyClassMeta
|
||||
|
||||
@kotlinx/cinterop/ExternalObjCClass
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public open class dependency/MyClass : kotlinx/cinterop/ObjCObjectBase {
|
||||
|
||||
@kotlinx/cinterop/ObjCConstructor(designated = true, initSelector = "init")
|
||||
public /* secondary */ constructor()
|
||||
|
||||
@kotlin/Deprecated(message = "Use constructor instead", replaceWith = kotlin/ReplaceWith(imports = [], expression = "MyClass()"), level = kotlin/DeprecationLevel.ERROR)
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "init", encoding = "@16@0:8", isStret = false)
|
||||
@kotlinx/cinterop/internal/CCall.ConsumesReceiver
|
||||
@kotlinx/cinterop/internal/CCall.ReturnsRetained
|
||||
public open external fun init(): dependency/MyClass?
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceMethod", encoding = "v16@0:8", isStret = false)
|
||||
public open external fun instanceMethod(): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceProperty", encoding = "i16@0:8", isStret = false)
|
||||
public open external fun instanceProperty(): kotlin/Int
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setInstanceProperty:", encoding = "v20@0:8i16", isStret = false)
|
||||
public open external fun setInstanceProperty(instanceProperty: kotlin/Int): kotlin/Unit
|
||||
|
||||
public final var instanceProperty: kotlin/Int
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceProperty", encoding = "i16@0:8", isStret = false)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setInstanceProperty:", encoding = "v20@0:8i16", isStret = false)
|
||||
public final /* non-default */ external set(value: kotlin/Int)
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
|
||||
@ExternalObjCClass @ExperimentalForeignApi open class MyClassMeta : ObjCObjectBaseMeta {
|
||||
protected constructor()
|
||||
var classProperty: Any?
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "classProperty") get
|
||||
@ObjCMethod(encoding = "v24@0:8@16", isStret = false, selector = "setClassProperty:") set
|
||||
@ObjCMethod(encoding = "v16@0:8", isStret = false, selector = "classMethod") open external fun classMethod()
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "classProperty") open external fun classProperty(): Any?
|
||||
@ObjCMethod(encoding = "v24@0:8@16", isStret = false, selector = "setClassProperty:") open external fun setClassProperty(classProperty: Any?)
|
||||
public final companion object dependency/MyClass.Companion : dependency/MyClassMeta, kotlinx/cinterop/ObjCClassOf<dependency/MyClass> {
|
||||
|
||||
private constructor()
|
||||
}
|
||||
|
||||
@kotlinx/cinterop/ExternalObjCClass
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public open class dependency/MyClassMeta : kotlinx/cinterop/ObjCObjectBaseMeta {
|
||||
|
||||
protected /* secondary */ constructor()
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classMethod", encoding = "v16@0:8", isStret = false)
|
||||
public open external fun classMethod(): kotlin/Unit
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classProperty", encoding = "@16@0:8", isStret = false)
|
||||
public open external fun classProperty(): kotlin/Any?
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setClassProperty:", encoding = "v24@0:8@16", isStret = false)
|
||||
public open external fun setClassProperty(classProperty: kotlin/Any?): kotlin/Unit
|
||||
|
||||
public final var classProperty: kotlin/Any?
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classProperty", encoding = "@16@0:8", isStret = false)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setClassProperty:", encoding = "v24@0:8@16", isStret = false)
|
||||
public final /* non-default */ external set(value: kotlin/Any?)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+44
-17
@@ -1,23 +1,50 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@ExternalObjCClass(protocolGetter = "kniprot_dependency0_MyProtocol") @ExperimentalForeignApi interface MyProtocolProtocol : ObjCObject {
|
||||
var instanceProperty: Any?
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "instanceProperty") get
|
||||
@ObjCMethod(encoding = "v24@0:8@16", isStret = false, selector = "setInstanceProperty:") set
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "instanceMethod") fun instanceMethod(): Any?
|
||||
@ObjCMethod(encoding = "@16@0:8", isStret = false, selector = "instanceProperty") fun instanceProperty(): Any?
|
||||
@ObjCMethod(encoding = "v24@0:8@16", isStret = false, selector = "setInstanceProperty:") fun setInstanceProperty(instanceProperty: Any?)
|
||||
// class name: dependency/MyProtocolProtocol
|
||||
// class name: dependency/MyProtocolProtocolMeta
|
||||
|
||||
@kotlinx/cinterop/ExternalObjCClass(protocolGetter = "kniprot_dependency0_MyProtocol")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public abstract interface dependency/MyProtocolProtocol : kotlinx/cinterop/ObjCObject {
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceMethod", encoding = "@16@0:8", isStret = false)
|
||||
public abstract fun instanceMethod(): kotlin/Any?
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceProperty", encoding = "@16@0:8", isStret = false)
|
||||
public abstract fun instanceProperty(): kotlin/Any?
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setInstanceProperty:", encoding = "v24@0:8@16", isStret = false)
|
||||
public abstract fun setInstanceProperty(instanceProperty: kotlin/Any?): kotlin/Unit
|
||||
|
||||
public final var instanceProperty: kotlin/Any?
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "instanceProperty", encoding = "@16@0:8", isStret = false)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setInstanceProperty:", encoding = "v24@0:8@16", isStret = false)
|
||||
public final /* non-default */ external set(value: kotlin/Any?)
|
||||
}
|
||||
|
||||
@ExternalObjCClass(protocolGetter = "kniprot_dependency0_MyProtocol") @ExperimentalForeignApi interface MyProtocolProtocolMeta : ObjCObjectMeta /* = ObjCClass */ {
|
||||
var classProperty: Int
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "classProperty") get
|
||||
@ObjCMethod(encoding = "v20@0:8i16", isStret = false, selector = "setClassProperty:") set
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "classMethod") fun classMethod(): Int
|
||||
@ObjCMethod(encoding = "i16@0:8", isStret = false, selector = "classProperty") fun classProperty(): Int
|
||||
@ObjCMethod(encoding = "v20@0:8i16", isStret = false, selector = "setClassProperty:") fun setClassProperty(classProperty: Int)
|
||||
}
|
||||
@kotlinx/cinterop/ExternalObjCClass(protocolGetter = "kniprot_dependency0_MyProtocol")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public abstract interface dependency/MyProtocolProtocolMeta : kotlinx/cinterop/ObjCClass /* = kotlinx/cinterop/ObjCObjectMeta^ */ {
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classMethod", encoding = "i16@0:8", isStret = false)
|
||||
public abstract fun classMethod(): kotlin/Int
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classProperty", encoding = "i16@0:8", isStret = false)
|
||||
public abstract fun classProperty(): kotlin/Int
|
||||
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setClassProperty:", encoding = "v20@0:8i16", isStret = false)
|
||||
public abstract fun setClassProperty(classProperty: kotlin/Int): kotlin/Unit
|
||||
|
||||
public final var classProperty: kotlin/Int
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "classProperty", encoding = "i16@0:8", isStret = false)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/ObjCMethod(selector = "setClassProperty:", encoding = "v20@0:8i16", isStret = false)
|
||||
public final /* non-default */ external set(value: kotlin/Int)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+37
-13
@@ -1,21 +1,45 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@ExternalObjCClass @ExperimentalForeignApi open class MyClass : ObjCObjectBase {
|
||||
protected constructor()
|
||||
companion object : MyClassMeta, ObjCClassOf<MyClass>
|
||||
// class name: dependency/MyClass
|
||||
// class name: dependency/MyClass.Companion
|
||||
// class name: dependency/MyClassMeta
|
||||
|
||||
@kotlinx/cinterop/ExternalObjCClass
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public open class dependency/MyClass : kotlinx/cinterop/ObjCObjectBase {
|
||||
|
||||
protected /* secondary */ constructor()
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
|
||||
@ExternalObjCClass @ExperimentalForeignApi open class MyClassMeta : ObjCObjectBaseMeta {
|
||||
protected constructor()
|
||||
public final companion object dependency/MyClass.Companion : dependency/MyClassMeta, kotlinx/cinterop/ObjCClassOf<dependency/MyClass> {
|
||||
|
||||
private constructor()
|
||||
}
|
||||
|
||||
}
|
||||
@kotlinx/cinterop/ExternalObjCClass
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public open class dependency/MyClassMeta : kotlinx/cinterop/ObjCObjectBaseMeta {
|
||||
|
||||
package dependency {
|
||||
@ExperimentalForeignApi typealias MyClassRef = MyClass?
|
||||
@ExperimentalForeignApi typealias MyClassRefVar = ObjCObjectVar<MyClassRef? /* = MyClass? */>
|
||||
@ExperimentalForeignApi typealias MyId = Any?
|
||||
@ExperimentalForeignApi typealias MyIdVar = ObjCObjectVar<MyId? /* = Any? */>
|
||||
}
|
||||
protected /* secondary */ constructor()
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
public typealias MyClassRef = dependency/MyClass? /* = dependency/MyClass? */
|
||||
|
||||
public typealias MyClassRefVar = kotlinx/cinterop/ObjCObjectVar<dependency/MyClassRef^> /* = kotlinx/cinterop/ObjCObjectVar<dependency/MyClass? /* = dependency/MyClassRef^ */> */
|
||||
|
||||
public typealias MyId = kotlin/Any? /* = kotlin/Any? */
|
||||
|
||||
public typealias MyIdVar = kotlinx/cinterop/ObjCObjectVar<dependency/MyId^> /* = kotlinx/cinterop/ObjCObjectVar<kotlin/Any? /* = dependency/MyId^ */> */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+29
-7
@@ -1,12 +1,34 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@CStruct(spelling = "struct { int x; }") @ExperimentalForeignApi class Foo constructor(rawPtr: NativePtr /* = NativePtr */) : CStructVar {
|
||||
var x: Int
|
||||
@CStruct.MemberAt(offset = 0.toLong()) get
|
||||
@CStruct.MemberAt(offset = 0.toLong()) set
|
||||
@CStruct.VarType(align = 4, size = 4.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||
// class name: dependency/Foo
|
||||
// class name: dependency/Foo.Companion
|
||||
|
||||
@kotlinx/cinterop/internal/CStruct(spelling = "struct { int x; }")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final class dependency/Foo : kotlinx/cinterop/CStructVar {
|
||||
|
||||
public constructor(rawPtr: kotlin/native/internal/NativePtr /* = kotlinx/cinterop/NativePtr^ */)
|
||||
|
||||
public final var x: kotlin/Int
|
||||
@kotlinx/cinterop/internal/CStruct.MemberAt(offset = 0L)
|
||||
public final /* non-default */ external get
|
||||
@kotlinx/cinterop/internal/CStruct.MemberAt(offset = 0L)
|
||||
public final /* non-default */ external set(value: kotlin/Int)
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
|
||||
}
|
||||
@kotlinx/cinterop/internal/CStruct.VarType(size = 4L, align = 4)
|
||||
@kotlin/Deprecated(message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = kotlin/ReplaceWith(imports = [], expression = ""), level = kotlin/DeprecationLevel.WARNING)
|
||||
public final companion object dependency/Foo.Companion : kotlinx/cinterop/CStructVar.Type {
|
||||
|
||||
private constructor()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+37
-12
@@ -1,18 +1,43 @@
|
||||
library {
|
||||
// module name: <dependency.def>
|
||||
|
||||
package dependency {
|
||||
library fragment {
|
||||
// package name: dependency
|
||||
|
||||
@CStruct(spelling = "struct { }") @ExperimentalForeignApi class T constructor(rawPtr: NativePtr /* = NativePtr */) : CStructVar {
|
||||
@CStruct.VarType(align = 1, size = 0.toLong()) @Deprecated(level = DeprecationLevel.WARNING, message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = ReplaceWith(expression = "", imports = {})) companion object : CStructVar.Type
|
||||
// class name: dependency/T
|
||||
// class name: dependency/T.Companion
|
||||
|
||||
@kotlinx/cinterop/internal/CStruct(spelling = "struct { }")
|
||||
@kotlinx/cinterop/ExperimentalForeignApi
|
||||
public final class dependency/T : kotlinx/cinterop/CStructVar {
|
||||
|
||||
public constructor(rawPtr: kotlin/native/internal/NativePtr /* = kotlinx/cinterop/NativePtr^ */)
|
||||
|
||||
// companion object: Companion
|
||||
|
||||
// nested class: Companion
|
||||
}
|
||||
|
||||
}
|
||||
@kotlinx/cinterop/internal/CStruct.VarType(size = 0L, align = 1)
|
||||
@kotlin/Deprecated(message = "Use sizeOf<T>() or alignOf<T>() instead.", replaceWith = kotlin/ReplaceWith(imports = [], expression = ""), level = kotlin/DeprecationLevel.WARNING)
|
||||
public final companion object dependency/T.Companion : kotlinx/cinterop/CStructVar.Type {
|
||||
|
||||
package dependency {
|
||||
@ExperimentalForeignApi typealias MyInt = Int
|
||||
@ExperimentalForeignApi typealias MyIntVar = IntVarOf<MyInt /* = Int */>
|
||||
@ExperimentalForeignApi typealias MyPointer = COpaquePointer
|
||||
@ExperimentalForeignApi typealias MyPointerVar = CPointerVarOf<MyPointer /* = CPointer<out CPointed> */>
|
||||
@ExperimentalForeignApi typealias MyS = S
|
||||
@ExperimentalForeignApi typealias MyT = T
|
||||
}
|
||||
private constructor()
|
||||
}
|
||||
|
||||
package {
|
||||
|
||||
public typealias MyInt = kotlin/Int /* = kotlin/Int */
|
||||
|
||||
public typealias MyIntVar = kotlinx/cinterop/IntVarOf<dependency/MyInt^> /* = kotlinx/cinterop/IntVarOf<kotlin/Int /* = dependency/MyInt^ */> */
|
||||
|
||||
public typealias MyPointer = kotlinx/cinterop/COpaquePointer^ /* = kotlinx/cinterop/CPointer<out kotlinx/cinterop/CPointed> /* = kotlinx/cinterop/COpaquePointer^ */ */
|
||||
|
||||
public typealias MyPointerVar = kotlinx/cinterop/CPointerVarOf<dependency/MyPointer^> /* = kotlinx/cinterop/CPointerVarOf<kotlinx/cinterop/CPointer<out kotlinx/cinterop/CPointed> /* = dependency/MyPointer^ */> */
|
||||
|
||||
public typealias MyS = cnames/structs/S /* = cnames/structs/S */
|
||||
|
||||
public typealias MyT = dependency/T /* = dependency/T */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user