Now I have another issue, there is a recursive definition in a header.
Basically this:
C:
struct structure;
typedef void (*callbackMethod)(struct structure *data);
struct structure{
callbackMethod callback;
}
Kotlin:
var structure = struct(
LIBRARY_PACKAGE,
"structure"
){
callback.member("callback", "")
}
var callback = "callback".callback(
LIBRARY_PACKAGE, void,
"callback", "",
structure.p.IN("data", "")
)
How do I resolve this? It says to define types explicitly and I am not sure what that means, I know nothing about Kotlin.