// Closes the device and releases its resources. func (device *Device) Close() int { C.freenect_set_user(device.dev, nil) return int(C.freenect_close_device(device.dev)) }
//FREENECTAPI int freenect_close_device(freenect_device *dev); func (dev *Device) Close() int { return int(C.freenect_close_device(dev.ptr())) }
// Destroy frees the Device object memory. func (device *Device) Destroy() { C.freenect_close_device(device.device) }