Hi. I'm doing a binding to a C game framework libr...
# kotlin-native
k
Hi. I'm doing a binding to a C game framework library and I'm manually tweaking some of the funcs. One function requires: const void *value (value is a parameter) Would I just need a CPointer for this? The generated binding shows that for the value parameter it would accept CValuesRef<*>?
l
COpaquePointer should be what best maps to void*
k
Okay thank you! Just what I guessed
Appreciate it
l
If you have a C header, have you tried cinterop? It should be able to generate bindings for you.
k
I have and I have it auto generated but I have to manually tweak some functions
Mainly for conventions reasons and to allow mutable values rather than usage of immutable cvalues