function should accept a CPointer<Eina_StringshareVar>? as the first parameter. Instead the function only accepts a CValuesRef<CPointerVar<Eina_StringshareVar>>? as the first parameter.
napperley
09/27/2021, 9:12 PM
It should be possible to do something like this:
Copy code
// ...
val str = eina_stringshare_add("Enlightenment is not just a window manager for Linux/X11 and others")
eina_stringshare_replace(str, "One desktop manager to rule them all")
println(str?.toKString())
eina_stringshare_del(str)
// ...
napperley
09/27/2021, 9:15 PM
The
eina_stringshare_del
function isn't being properly mapped by the cinterop tool. The first parameter of the function should be CPointer<Eina_StringshareVar>? instead of String?.