Im trying to convert an exsisting c code to kotlin, with an native library.
so far ive successfully got started but struggeling by the pointers that are used to get access to structures or objects.
like this in c:

```
void *ptr;
foo(&ptr); //init is done inside
bar(&ptr); //ptr is reused

```

but how to keep those pointers in kotlin?
attempts like this:

```
var avar = CPointerVarOf<COpaquePointer>(NativePtr.NULL)
var bvar: CPointerVarOf<CPointer<*>> = null

```

results in 

```
Native interop types constructors must not be called directly

```

ive read:
[kotlin inerop](https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md)

Any hint is appreciated.