Hi! Any example of receiving a function pointer wi...
# kotlin-native
i
Hi! Any example of receiving a function pointer with Kotlin method?
cc @aleksey.tomin
a
I don’t need this. I always send kotlin lambda and wrap it into method
You can create something like (it’s from libmicrohttpd):
Copy code
val dh = staticCFunction<COpaquePointer?, CPointer<MHD_Connection>?, CPointer<ByteVar>?, CPointer<ByteVar>?, CPointer<ByteVar>?, CPointer<ByteVar>?, CPointer<size_tVar>?, CPointer<COpaquePointerVar>?, MHD_Result>