Example #1
0
// 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))
}
Example #2
0
//FREENECTAPI int freenect_close_device(freenect_device *dev);
func (dev *Device) Close() int {
	return int(C.freenect_close_device(dev.ptr()))
}
Example #3
0
// Destroy frees the Device object memory.
func (device *Device) Destroy() {

	C.freenect_close_device(device.device)
}