Beispiel #1
0
func _drv(id int, act int, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9 unsafe.Pointer) int {
	return int(C.drv(C.int(id), C.int(act), nil, a0, a1, a2, a3, a4, a5, a6))
}
Beispiel #2
0
func _drv_ch(id int, act int, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9 unsafe.Pointer) int {
	ch := make(chan int)
	C.drv(C.int(id), C.int(act), unsafe.Pointer(&ch), a0, a1, a2, a3, a4, a5, a6)
	<-ch
	return 0
}
Beispiel #3
0
func drv10(id int, act int, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) int {
	return int(C.drv(C.int(id), C.int(act), unsafe.Pointer(a0), unsafe.Pointer(a1), unsafe.Pointer(a2), unsafe.Pointer(a3), unsafe.Pointer(a4), unsafe.Pointer(a5), unsafe.Pointer(a6), unsafe.Pointer(a7), unsafe.Pointer(a8), unsafe.Pointer(a9)))
}