So I've gone through it step by step and the problem is, that the compiler does not complain if I call a function from a Kotlin object, but at runtime the code doesn't do anything. I guess the problem is how to pass a kotlin object to a static c function without handing it over as a parameter.