Continuation of #721, this type using mktypes.sh that I didn't know at the time. Weirdly, `go tool cgo -godefs` doesn't produce propery go-fmt-ed code, had to do run go-fmt manually afterwards.