Would be very useful for IntelliJ to have the ability to generate C callbacks in a Kotlin Native project. Lets say hypothetically these definitions exist in a Kotlin Native library:
And a hypothetical Kotlin Native program is developed where a Kotliner starts typing in the following with the carrot positioned in the parenthesis:
Copy code
val app = Application("org.example.sampleapp")
app.connectActivateSignal()
napperley
12/17/2019, 12:36 AM
Hypothetically in that situation IntelliJ would have a light bulb appear containing the option to generate a C callback. When the option is selected IntelliJ generates a callback and the Kotliner enters in the function name (eg activateApplication):
Copy code
private fun activateApplication(app: CPointer<GApplication>, userData: gpointer) {
TODO("Implement this C callback")
}