I am trying to call the following C function (simplified version from a C library) from Go,
and I got compiler errors:
typedef void device_t;
void open(device_t **dev) {
}
Go Function:
func Open() {
var dev C.device_t
C.open(&&dev)
}
Compiler (v1.17) error:
cannot use _cgo0 (type **_Ctype_void) as type *unsafe.Pointer in argument to _Cfunc_open
How to fix that?
Regards.